fix memo and add tests
This commit is contained in:
1 parent
7f2049b647
commit
190c65b15d
5 files changed
+198
-27
No files matched your search
+1
-1
@@ -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!" } }
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user