handle expressions in attributes

This commit is contained in:
Evan Almloff committed 2022-05-26 19:16:51 -05:00
1 parent 62cca95905
commit 5b0a60c294
4 files changed
+85 -51

No files matched your search

+4 -1
View File
@@ -19,6 +19,9 @@ fn app(cx: Scope) -> Element {
});
cx.render(rsx! {
h1 { "High-Five counter: {count}" }
h1 {
x: count,
"High-Five counter: {count}"
}
})
}