31 lines
572 B
Rust
31 lines
572 B
Rust
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() {
|
|
let r = html! {
|
|
<div>
|
|
"hello world"
|
|
"hello world"
|
|
"hello world"
|
|
"hello world"
|
|
</div>
|
|
};
|
|
}
|
|
|
|
fn rsx_uage() {
|
|
let r = html! {
|
|
<Fragment>
|
|
"hello world"
|
|
"hello world"
|
|
"hello world"
|
|
"hello world"
|
|
</Fragment>
|
|
};
|
|
}
|