wip: remove runner on hook and then update docs

This commit is contained in:
Jonathan Kelley committed 2022-01-02 02:15:04 -05:00
1 parent 7d41a16208
commit d1560450ba
95 files changed
+1339 -675

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@ fn main() {
}
fn parent(cx: Scope) -> Element {
let value = cx.use_hook(|_| String::new(), |f| f);
let value = cx.use_hook(|_| String::new());
cx.render(rsx! {
div {
@@ -33,8 +33,8 @@ struct ChildProps<'a> {
fn child<'a>(cx: Scope<'a, ChildProps<'a>>) -> Element {
cx.render(rsx! {
div {
"it's nested {cx.props.name}"
{&cx.props.children}
"it's nested {cx.props.name}",
&cx.props.children
}
})
}
+1 -1
View File
@@ -10,7 +10,7 @@ fn main() {
}
fn parent(cx: Scope) -> Element {
let value = cx.use_hook(|_| String::new(), |f| f);
let value = cx.use_hook(|_| String::new());
cx.render(rsx! {
div {