dummy.rs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // #![allow(unused, non_upper_case_globals)]
  2. // use bumpalo::Bump;
  3. // use dioxus_core::nodebuilder::*;
  4. // use dioxus_core::{nodes::DomTree, prelude::*};
  5. // use std::{collections::HashMap, future::Future, marker::PhantomData};
  6. fn main() {}
  7. // struct DummyRenderer {
  8. // alloc: Bump,
  9. // }
  10. // impl DummyRenderer {
  11. // // "Renders" a domtree by logging its children and outputs
  12. // fn render() {}
  13. // // Takes a domtree, an initial value, a new value, and produces the diff list
  14. // fn produce_diffs() {}
  15. // }
  16. // struct Props<'a> {
  17. // name: &'a str,
  18. // }
  19. // /// This component does "xyz things"
  20. // /// This is sample documentation
  21. // static Component: FC<Props> = |ctx| {
  22. // // This block mimics that output of the html! macro
  23. // DomTree::new(move |bump| {
  24. // // parse into RSX structures
  25. // // regurgetate as rust types
  26. // // <div> "Child 1" "Child 2"</div>
  27. // div(bump)
  28. // .attr("class", "edit")
  29. // .child(text("Child 1"))
  30. // .child(text("Child 2"))
  31. // .finish()
  32. // })
  33. // };
  34. // /*
  35. // source
  36. // |> c1 -> VNode
  37. // |> c2 -> VNode
  38. // |> c3 -> VNode
  39. // |> c4 -> VNode
  40. // */