feat: overhaul examples and clean things up
This commit is contained in:
1 parent
601632fc7e
commit
420a30e5d4
33 files changed
+1089
-1417
No files matched your search
+3
-3
@@ -25,10 +25,10 @@ fn app(cx: Scope) -> Element {
|
||||
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
h1 { "High-Five counter: {count}" }
|
||||
h1 { "Current count: {count}" }
|
||||
button {
|
||||
onclick: move |_| *count.modify() += 1,
|
||||
"Click me!"
|
||||
onclick: move |_| count.set(0),
|
||||
"Reset the count"
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user