dioxus/packages/desktop/examples/test.rs

26 lines
503 B
Rust
Raw Normal View History

2021-07-13 03:44:20 +00:00
use dioxus_core as dioxus;
use dioxus_core::prelude::*;
2021-07-08 16:01:31 +00:00
fn main() {
2021-07-16 04:27:06 +00:00
dioxus_desktop::launch(App, |f| f.with_maximized(true)).expect("Failed");
2021-07-08 16:01:31 +00:00
}
static App: FC<()> = |cx| {
//
cx.render(rsx!(
div {
"hello world!"
}
))
};
mod dioxus_elements {
use super::*;
pub struct div;
impl DioxusElement for div {
const TAG_NAME: &'static str = "div";
const NAME_SPACE: Option<&'static str> = None;
}
2021-07-13 04:56:39 +00:00
pub trait GlobalAttributes {}
2021-07-08 16:01:31 +00:00
}