dioxuslab/examples/hello_world.rs

12 lines
166 B
Rust
Raw Normal View History

2021-10-28 02:54:49 +08:00
use dioxus::prelude::*;
fn main() {
dioxus_desktop::launch(app);
2021-10-28 02:54:49 +08:00
}
2021-12-30 10:28:28 +08:00
fn app(cx: Scope) -> Element {
2021-10-28 02:54:49 +08:00
cx.render(rsx! (
div { "Hello, world!" }
))
}