restore readme.rs

This commit is contained in:
ealmloff 2023-11-21 16:28:31 -06:00 committed by GitHub
parent 7a459e15d8
commit 017d7e96bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,12 +11,6 @@ fn main() {
fn app(cx: Scope) -> Element {
let mut count = use_state(cx, || 0);
use_effect(cx, (), move |()| async {});
use_effect(cx, (count.get(),), move |(count,)| async move {
move || println!("Count unmounted from {}", count)
});
cx.render(rsx! {
h1 { "High-Five counter: {count}" }
button { onclick: move |_| count += 1, "Up high!" }