fix memo and add tests

This commit is contained in:
Evan Almloff committed 2023-08-07 14:31:03 -07:00
1 parent 7f2049b647
commit 190c65b15d
5 files changed
+198 -27

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ fn app(cx: Scope) -> Element {
button { onclick: move |_| count += 1, "Up high!" }
button { onclick: move |_| count -= 1, "Down low!" }
if count() > 5 {
if count.value() > 5 {
rsx!{ h2 { "High five!" } }
}
})