update: modify usestate to be borrowed

This commit is contained in:
Jonathan Kelley committed 2022-01-16 15:56:48 -05:00
1 parent 8e842231e4
commit 58839f47ba
10 files changed
+237 -419

No files matched your search

+1 -1
View File
@@ -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 {