alternative.rs 490 B

12345678910111213141516171819202122
  1. use dioxus_core::prelude::*;
  2. fn main() {}
  3. pub static Example: FC<()> = |cx| {
  4. let list = (0..10).map(|f| LazyNodes::new(move |f| todo!()));
  5. cx.render(LazyNodes::new(move |cx| {
  6. cx.raw_element(
  7. "div",
  8. None,
  9. [],
  10. [],
  11. [
  12. cx.text(format_args!("hello")),
  13. cx.text(format_args!("hello")),
  14. cx.fragment_from_iter(list),
  15. ],
  16. None,
  17. )
  18. }))
  19. };