mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 14:40:44 +00:00
13 lines
284 B
Rust
13 lines
284 B
Rust
use dioxus_core as dioxus;
|
|
use dioxus_html as dioxus_elements;
|
|
use dioxus_web::prelude::*;
|
|
|
|
fn main() {
|
|
wasm_bindgen_futures::spawn_local(dioxus_web::WebsysRenderer::start(App))
|
|
}
|
|
|
|
fn App(cx: Context<()>) -> DomTree {
|
|
cx.render(rsx! {
|
|
div { "Hello, world!" }
|
|
})
|
|
}
|