mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-25 03:53:08 +00:00
12 lines
221 B
Rust
12 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!" }
|
||
|
})
|
||
|
}
|