1
0

basic.rs 363 B

1234567891011121314
  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. [dioxus::events::on::onclick(__cx, move |_| {})],
  8. [],
  9. [],
  10. None,
  11. )
  12. });
  13. }