mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 20:53:06 +00:00
25 lines
503 B
Rust
25 lines
503 B
Rust
use dioxus_core as dioxus;
|
|
use dioxus_core::prelude::*;
|
|
|
|
fn main() {
|
|
dioxus_desktop::launch(App, |f| f.with_maximized(true)).expect("Failed");
|
|
}
|
|
|
|
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;
|
|
}
|
|
pub trait GlobalAttributes {}
|
|
}
|