mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-24 05:03:06 +00:00
16 lines
437 B
Rust
16 lines
437 B
Rust
|
use dioxus::prelude::*;
|
||
|
|
||
|
fn main() {
|
||
|
let g = dioxus::prelude::LazyNodes::new(move |__cx: NodeFactory| {
|
||
|
use dioxus_elements::{GlobalAttributes, SvgAttributes};
|
||
|
__cx.element(
|
||
|
dioxus_elements::button,
|
||
|
__cx.bump()
|
||
|
.alloc([dioxus::events::on::onclick(__cx, move |_| {})]),
|
||
|
__cx.bump().alloc([]),
|
||
|
__cx.bump().alloc([]),
|
||
|
None,
|
||
|
)
|
||
|
});
|
||
|
}
|