chore: make for loops not the same

This commit is contained in:
Jonathan Kelley committed 2022-11-17 22:55:46 -08:00
1 parent 20f9957fbe
commit 6c677e64da
4 files changed
+33 -29

No files matched your search

+2 -2
View File
@@ -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