Dioxus 是一个可移植的、高性能的、符合人体工程学的框架,使用 Rust 语言构建跨平台的用户界面。
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!" }
})
}
Dioxus 可用于生成 网页前端、桌面应用、静态网站、移动端应用、TUI程序、等多类平台应用。
如果你能够熟悉使用 React 框架,那 Dioxus 对你来说将非常简单。
网站项目 |
|
桌面应用 |
|
移动端应用 |
|
Liveview |
|
终端程序 |
|
目前有非常多的应用开发选择,为什么偏偏要选择 Dioxus 呢?
首先,Dioxus将开发者的经验放在首位。这反映在 Dioxus 特有的各种功能上。
Dioxus 也是一个可扩展化的平台。
Dioxus 那么优秀,但什么时候它不适合我呢?
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you, shall be licensed as MIT, without any additional terms or conditions.