dioxus/packages/web/examples/helloworld.rs
2021-06-10 01:01:53 -04:00

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!" }
})
}