dioxus/packages/webview/examples/test.rs

26 lines
516 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() {
dioxus_webview::launch(App, |f| f.with_focus().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;
}
2021-07-13 04:56:39 +00:00
pub trait GlobalAttributes {}
2021-07-08 16:01:31 +00:00
}