dioxus/packages/desktop/examples/test.rs

17 lines
321 B
Rust
Raw Normal View History

2021-07-13 03:44:20 +00:00
use dioxus_core as dioxus;
use dioxus_core::prelude::*;
use dioxus_html as dioxus_elements;
2021-07-13 03:44:20 +00:00
2021-07-08 16:01:31 +00:00
fn main() {
dioxus_desktop::launch(App, |f| f.with_window(|w| w.with_maximized(true))).expect("Failed");
2021-07-08 16:01:31 +00:00
}
static App: FC<()> = |cx| {
//
cx.render(rsx!(
div {
"hello world!"
}
))
};