dioxus/examples/button.rs
2022-12-22 14:45:48 -05:00

11 lines
171 B
Rust

use dioxus::prelude::*;
fn main() {
dioxus_desktop::launch(app);
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
button { "hello, desktop!" }
})
}