docs: remove all usages of static closure syntax and update readme
This commit is contained in:
1 parent
d1560450ba
commit
cafb7df736
66 files changed
+792
-2019
No files matched your search
@@ -42,19 +42,19 @@ pub static Example: Component = |cx| {
|
||||
div {
|
||||
h1 {"count is {count}"}
|
||||
button {
|
||||
onclick: move |_| task.stop(),
|
||||
"Stop counting"
|
||||
onclick: move |_| task.stop()
|
||||
}
|
||||
button {
|
||||
onclick: move |_| task.resume(),
|
||||
"Start counting"
|
||||
onclick: move |_| task.resume()
|
||||
}
|
||||
button {
|
||||
"Switch counting direcion"
|
||||
onclick: move |_| {
|
||||
direction *= -1;
|
||||
task.restart();
|
||||
}
|
||||
"Switch counting direcion"
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user