handle expressions in attributes
This commit is contained in:
1 parent
62cca95905
commit
5b0a60c294
4 files changed
+85
-51
No files matched your search
@@ -19,6 +19,9 @@ fn app(cx: Scope) -> Element {
|
||||
});
|
||||
|
||||
cx.render(rsx! {
|
||||
h1 { "High-Five counter: {count}" }
|
||||
h1 {
|
||||
x: count,
|
||||
"High-Five counter: {count}"
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user