dioxus/examples/hello_world.rs

13 lines
207 B
Rust
Raw Normal View History

2021-10-27 18:54:49 +00:00
use dioxus::prelude::*;
use dioxus_desktop::tao::menu::MenuBar;
2021-10-27 18:54:49 +00:00
fn main() {
2022-01-07 17:14:38 +00:00
dioxus::desktop::launch(app);
2021-10-27 18:54:49 +00:00
}
2021-12-30 02:28:28 +00:00
fn app(cx: Scope) -> Element {
2021-10-27 18:54:49 +00:00
cx.render(rsx! (
div { "Hello, world!" }
))
}