mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-24 19:43:10 +00:00
11 lines
221 B
Rust
11 lines
221 B
Rust
use dioxus_web::prelude::*;
|
|
|
|
fn main() {
|
|
wasm_bindgen_futures::spawn_local(dioxus_web::WebsysRenderer::start(App))
|
|
}
|
|
|
|
fn App(ctx: Context<()>) -> VNode {
|
|
ctx.render(rsx! {
|
|
div { "Hello, world!" }
|
|
})
|
|
}
|