Последняя активность 1729152537

Dioxus-1.rs Исходник
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}