Disambiguate expressions in rsx by requiring curlies
This commit is contained in:
53 files changed
+399
-373
No files matched your search
@@ -39,9 +39,9 @@ fn App(cx: Scope) -> Element {
|
||||
}
|
||||
button { onclick: move |_| idx -= 1, "-" }
|
||||
ul {
|
||||
(0..**idx).map(|i| rsx! {
|
||||
{(0..**idx).map(|i| rsx! {
|
||||
ChildExample { i: i, onhover: onhover }
|
||||
})
|
||||
})}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user