1
0

basic.rs 437 B

123456789101112131415
  1. use dioxus::prelude::*;
  2. fn main() {
  3. let g = dioxus::prelude::LazyNodes::new(move |__cx: NodeFactory| {
  4. use dioxus_elements::{GlobalAttributes, SvgAttributes};
  5. __cx.element(
  6. dioxus_elements::button,
  7. __cx.bump()
  8. .alloc([dioxus::events::on::onclick(__cx, move |_| {})]),
  9. __cx.bump().alloc([]),
  10. __cx.bump().alloc([]),
  11. None,
  12. )
  13. });
  14. }