dioxus/examples/hello_world.rs

12 lines
158 B
Rust
Raw Normal View History

2021-10-27 14:54:49 -04:00
use dioxus::prelude::*;
fn main() {
dioxus_desktop::launch(app);
2021-10-27 14:54:49 -04:00
}
2021-12-29 21:28:28 -05:00
fn app(cx: Scope) -> Element {
render! {
2021-10-27 14:54:49 -04:00
div { "Hello, world!" }
}
2021-10-27 14:54:49 -04:00
}