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:
koti authored and GitHub committed 2024-04-01 11:31:01 -05:00
1 parent 7949fcda9a
commit d45a71ba54
1 file changed
+1 -1
+1 -1
View File
@@ -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! {