fix: errors when using render macro

This commit is contained in:
Jonathan Kelley committed 2022-12-23 17:47:57 -05:00
1 parent fd8015e943
commit e7e21fa2f0
3 files changed
+26 -25

No files matched your search

+2 -2
View File
@@ -11,9 +11,9 @@ fn main() {
fn app(cx: Scope) -> Element {
let mut count = use_state(cx, || 0);
cx.render(rsx! {
render! {
h1 { "High-Five counter: {count}" }
button { onclick: move |_| count += 1, "Up high!" }
button { onclick: move |_| count -= 1, "Down low!" }
})
}
}