タグ

ブックマーク / dioxuslabs.com (1)

  • Dioxus

    //! Simple, familiar, React-like syntax use dioxus::prelude::*; fn app() -> Element { let mut count = use_signal(|| 0); rsx! { h1 { "High-Five counter: {count}" } button { onclick: move |_| count += 1, "Up high!" } button { onclick: move |_| count -= 1, "Down low!" } } } //! Encapsulate state in components use dioxus::prelude::*; #[component] fn Stateful(name: String, age: u64) -> Element { rsx! {

    Dioxus
    mickn
    mickn 2022/02/08
  • 1