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:
1 file changed
+1
-1
@@ -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! {
|
||||
|
||||
Reference in new issue
Block a user