dioxus/packages/core/examples/syntax.rs

18 lines
332 B
Rust
Raw Normal View History

2021-10-20 02:39:27 +00:00
use dioxus::component::Component;
use dioxus::events::on::MouseEvent;
use dioxus_core as dioxus;
use dioxus_core::prelude::*;
use dioxus_core_macro::*;
use dioxus_html as dioxus_elements;
fn main() {}
fn html_usage() {
2021-10-20 05:26:52 +00:00
let r = rsx! {
div {
onclick: move |_| {}
2021-10-20 05:26:52 +00:00
"hello world"
}
};
2021-10-20 02:39:27 +00:00
}