mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-25 20:07:16 +00:00
19 lines
293 B
Rust
19 lines
293 B
Rust
|
// ANCHOR: all
|
||
|
#![allow(non_snake_case)]
|
||
|
use dioxus::prelude::*;
|
||
|
|
||
|
fn main() {
|
||
|
dioxus::desktop::launch(App);
|
||
|
}
|
||
|
|
||
|
// ANCHOR: component
|
||
|
fn App(cx: Scope) -> Element {
|
||
|
cx.render(rsx! {
|
||
|
div {
|
||
|
"Hello, world!"
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
// ANCHOR_END: component
|
||
|
// ANCHOR_END: all
|