mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 20:53:06 +00:00
18 lines
343 B
Rust
18 lines
343 B
Rust
use dioxus_core as dioxus;
|
|
use dioxus_core::prelude::*;
|
|
use dioxus_core_macro::*;
|
|
|
|
use dioxus_html as dioxus_elements;
|
|
|
|
fn main() {
|
|
dioxus_desktop::launch(App, |c| c);
|
|
}
|
|
|
|
static App: FC<()> = |(cx, props)| {
|
|
cx.render(rsx!(
|
|
div {
|
|
"hello world!"
|
|
}
|
|
{(0..10).map(|f| rsx!( div {"abc {f}"}))}
|
|
))
|
|
};
|