Última actividad 1729152537

Revisión f2fe12ced1bc6a31349d12c6941ab14e4e802be5

Dioxus-1.rs Sin formato
1fn app() -> Element {
2 let mut count = use_signal(|| 0);
3
4 rsx! {
5 h1 { "High-Five counter: {count}" }
6 button { onclick: move |_| count += 1, "Up high!" }
7 button { onclick: move |_| count -= 1, "Down low!" }
8 }
9}