fix readme

This commit is contained in:
Jonathan Kelley 2024-02-02 15:03:46 -08:00
parent 6bde8b0ce0
commit 8b489db5ac
No known key found for this signature in database
GPG key ID: 1FBB50F7EB0A08BE

View file

@ -1,5 +1,3 @@
use std::time::Duration;
use dioxus::prelude::*;
fn main() {
@ -9,11 +7,6 @@ fn main() {
fn app() -> Element {
let mut count = use_signal(|| 0);
let g: ReadOnlySignal<(), UnsyncStorage> =
use_maybe_sync_selector_with_dependencies((&(count())), move |deps| {
println!("High-Five counter: {}", deps);
});
rsx! {
h1 { "High-Five counter: {count}" }
button { onclick: move |_| count += 1, "Up high!" }