mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 04:33:06 +00:00
fix readme
This commit is contained in:
parent
6bde8b0ce0
commit
8b489db5ac
1 changed files with 0 additions and 7 deletions
|
@ -1,5 +1,3 @@
|
||||||
use std::time::Duration;
|
|
||||||
|
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -9,11 +7,6 @@ fn main() {
|
||||||
fn app() -> Element {
|
fn app() -> Element {
|
||||||
let mut count = use_signal(|| 0);
|
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! {
|
rsx! {
|
||||||
h1 { "High-Five counter: {count}" }
|
h1 { "High-Five counter: {count}" }
|
||||||
button { onclick: move |_| count += 1, "Up high!" }
|
button { onclick: move |_| count += 1, "Up high!" }
|
||||||
|
|
Loading…
Reference in a new issue