dioxus/examples/basic.rs
2021-07-24 02:52:05 -04:00

14 lines
363 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,
[dioxus::events::on::onclick(__cx, move |_| {})],
[],
[],
None,
)
});
}