From d45a71ba54c7543a3f2281779eef847a05e74541 Mon Sep 17 00:00:00 2001 From: koti Date: Mon, 1 Apr 2024 22:01:01 +0530 Subject: [PATCH] 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 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 90986d2c0..01602121e 100644 --- a/README.md +++ b/README.md @@ -273,7 +273,7 @@ fn Counters() -> Element { [While in Leptos you would use the `` 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! {