Clean up a number of examples
This commit is contained in:
30 files changed
+284
-413
No files matched your search
@@ -9,17 +9,13 @@ fn app() -> Element {
|
||||
|
||||
rsx! {
|
||||
div {
|
||||
button {
|
||||
onclick: move |_| disabled.set(!disabled),
|
||||
button { onclick: move |_| disabled.toggle(),
|
||||
"click to "
|
||||
if disabled == true { "enable" } else { "disable" }
|
||||
if *disabled() { "enable" } else { "disable" }
|
||||
" the lower button"
|
||||
}
|
||||
|
||||
button {
|
||||
disabled: "{disabled}",
|
||||
"lower button"
|
||||
}
|
||||
button { disabled, "lower button" }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user