test.rs 516 B

12345678910111213141516171819202122232425
  1. use dioxus_core as dioxus;
  2. use dioxus_core::prelude::*;
  3. fn main() {
  4. dioxus_webview::launch(App, |f| f.with_focus().with_maximized(true)).expect("Failed");
  5. }
  6. static App: FC<()> = |cx| {
  7. //
  8. cx.render(rsx!(
  9. div {
  10. "hello world!"
  11. }
  12. ))
  13. };
  14. mod dioxus_elements {
  15. use super::*;
  16. pub struct div;
  17. impl DioxusElement for div {
  18. const TAG_NAME: &'static str = "div";
  19. const NAME_SPACE: Option<&'static str> = None;
  20. }
  21. pub trait GlobalAttributes {}
  22. }