Fix typo (#1071)
This commit is contained in:
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
|
### 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
|
```rust
|
||||||
{{#include ../../../examples/rendering_lists.rs:render_list_for_loop}}
|
{{#include ../../../examples/rendering_lists.rs:render_list_for_loop}}
|
||||||
|
|||||||
Reference in new issue
Block a user