From c771ab7e714bbaa7c6a031291abf05a17c8b6d8c Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 12 Jul 2024 09:09:53 -0400 Subject: [PATCH] examples: revert changes to counter --- examples/counter/src/lib.rs | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/examples/counter/src/lib.rs b/examples/counter/src/lib.rs index b653042de..5f9b48825 100644 --- a/examples/counter/src/lib.rs +++ b/examples/counter/src/lib.rs @@ -10,7 +10,7 @@ pub fn SimpleCounter( /// The change that should be applied each time the button is clicked. step: i32, ) -> impl IntoView { - /*let (value, set_value) = signal(initial_value); + let (value, set_value) = signal(initial_value); view! {
@@ -19,24 +19,5 @@ pub fn SimpleCounter( "Value: " {value} "!"
- }*/ - App() -} - -use gloo_timers::future::TimeoutFuture; -use leptos::{html::Input, prelude::*}; - -#[component] -fn Widget() -> impl IntoView { - let input_ref = NodeRef::::new(); - - Effect::new(move |_| { - let Some(_) = input_ref.get() else { - log!("no ref"); - return; - }; - log!("ref"); - }); - - view! { } + } }