mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
12 lines
267 B
Rust
12 lines
267 B
Rust
use dioxus::prelude::*;
|
|
use dioxus_desktop::tao::menu::MenuBar;
|
|
|
|
fn main() {
|
|
dioxus::desktop::launch_cfg(app, |c| c.with_window(|w| w.with_menu(MenuBar::default())));
|
|
}
|
|
|
|
fn app(cx: Scope) -> Element {
|
|
cx.render(rsx! (
|
|
div { "Hello, world!" }
|
|
))
|
|
}
|