
4

Dioxus | An elegant GUI library for Rust
source link: https://dioxuslabs.com/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

One codebase, every platform.
Dioxus is a React-inspired library for Rust focused on developer experience. Build fast, beautiful, and fully-featured apps for every platform in less time.
//! Simple, familiar, React-like syntax
fn app(cx: Scope) -> Element {
let mut count = use_state(&cx, || 0);
cx.render(rsx!(
h1 { "High-Five counter: {count}" }
button { onclick: move |_| count += 1, "Up high!" }
button { onclick: move |_| count -= 1, "Down low!" }
))
}
</div
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK