4

Dioxus | An elegant GUI library for Rust

 2 years ago
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.
neoserver,ios ssh client

Dioxus

User interfaces that run anywhere. ?

Written in Rust, inspired by React

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK