update: modify usestate to be borrowed
This commit is contained in:
1 parent
8e842231e4
commit
58839f47ba
10 files changed
+237
-419
No files matched your search
@@ -11,7 +11,7 @@ fn app(cx: Scope) -> Element {
|
||||
div {
|
||||
button {
|
||||
onclick: move |_| disabled.set(!disabled.get()),
|
||||
"click to " [if *disabled {"enable"} else {"disable"} ] " the lower button"
|
||||
"click to " [if **disabled {"enable"} else {"disable"} ] " the lower button"
|
||||
}
|
||||
|
||||
button {
|
||||
|
||||
Reference in new issue
Block a user