simple_syntax.rs 498 B

12345678910111213141516171819202122232425
  1. use dioxus_core::prelude::*;
  2. fn app(cx: Scope) -> Element {
  3. todo!();
  4. // render! {
  5. // Suspend {
  6. // delay: Duration::from_millis(100),
  7. // fallback: rsx! { "Loading..." },
  8. // ChildAsync {}
  9. // ChildAsync {}
  10. // ChildAsync {}
  11. // }
  12. // }
  13. }
  14. async fn ChildAsync(cx: Scope<'_>) -> Element {
  15. todo!()
  16. }
  17. #[test]
  18. fn it_works() {
  19. let mut dom = VirtualDom::new(app);
  20. let mut mutations = dom.rebuild();
  21. }