fix readme

This commit is contained in:
Jonathan Kelley committed 2024-02-02 15:03:46 -08:00
1 parent 6bde8b0ce0
commit 8b489db5ac
1 file changed
-7
-7
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!" }