dioxus/packages/web/examples/helloworld.rs
2021-06-25 21:15:33 -04:00

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