chore: make for loops not the same
This commit is contained in:
1 parent
20f9957fbe
commit
6c677e64da
4 files changed
+33
-29
No files matched your search
@@ -20,9 +20,9 @@ fn app(cx: Scope) -> Element {
|
||||
// Use optionals
|
||||
Some(rsx! { "Some" }),
|
||||
|
||||
// use a for loop
|
||||
// use a for loop where the body itself is RSX
|
||||
for name in 0..10 {
|
||||
rsx! { "{name}" }
|
||||
div {"{name}"}
|
||||
}
|
||||
|
||||
// Or even use an unterminated conditional
|
||||
|
||||
Reference in new issue
Block a user