This commit is contained in:
Tilman authored and GitHub committed 2023-06-04 08:39:21 -05:00
1 parent b264211cc2
commit 0f684f0567
1 file changed
+1 -1
@@ -64,7 +64,7 @@ Example: suppose you have a list of comments you want to render. Then, you can r
### Inline for loops
Because of how common it is to render a list of items, Dioxus provides a shorthand for this. Instead of using `.iter, `.map`, and `rsx`, you can use a `for` loop with a body of rsx code:
Because of how common it is to render a list of items, Dioxus provides a shorthand for this. Instead of using `.iter`, `.map`, and `rsx`, you can use a `for` loop with a body of rsx code:
```rust
{{#include ../../../examples/rendering_lists.rs:render_list_for_loop}}