mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
Fix for Counters sample code in Readme (#2213)
* Fix for Counters sample code in Readme For leptos code, there is no need for Memorization here. As memorization of the values of the text nodes in the renderer already happens. * Reverted to Memo
This commit is contained in:
parent
7949fcda9a
commit
d45a71ba54
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ fn Counters() -> Element {
|
|||
[While in Leptos you would use the `<For>` component.](https://book.leptos.dev/view/04_iteration.html#dynamic-rendering-with-the-for-component):
|
||||
|
||||
```rust
|
||||
fn Counters() -> Element {
|
||||
fn Counters() -> impl IntoView {
|
||||
let counters = RwSignal::new(vec![0; 10]);
|
||||
|
||||
view! {
|
||||
|
|
Loading…
Reference in a new issue