mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
restore readme.rs
This commit is contained in:
parent
7a459e15d8
commit
017d7e96bf
1 changed files with 0 additions and 6 deletions
|
@ -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!" }
|
||||
|
|
Loading…
Add table
Reference in a new issue