From 1c67585ba25499a6582aed98a835cb14e4298f7d Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Mon, 29 Jan 2024 13:37:00 -0600 Subject: [PATCH] restore readme.rs --- examples/readme.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/examples/readme.rs b/examples/readme.rs index 38eed4469..ae4648cf7 100644 --- a/examples/readme.rs +++ b/examples/readme.rs @@ -8,20 +8,7 @@ fn app() -> Element { let mut count = use_signal(|| 0); rsx! { - Child { count: "High-Five counter: {count}" } - Child { count: "count" } button { onclick: move |_| count += 1, "Up high!" } button { onclick: move |_| count -= 1, "Down low!" } } } - -#[derive(Props, Clone, PartialEq)] -struct ChildProps { - count: Option, -} - -fn Child(props: ChildProps) -> Element { - rsx! { - h1 { "{props.count.unwrap_or_default()}" } - } -}