mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-25 03:53:08 +00:00
12 lines
246 B
Rust
12 lines
246 B
Rust
use dioxus_core as dioxus;
|
|
use dioxus_web::prelude::*;
|
|
|
|
fn main() {
|
|
wasm_bindgen_futures::spawn_local(dioxus_web::WebsysRenderer::start(App))
|
|
}
|
|
|
|
fn App(cx: Context<()>) -> VNode {
|
|
cx.render(rsx! {
|
|
div { "Hello, world!" }
|
|
})
|
|
}
|