2
0
Fork 0
mirror of https://github.com/DioxusLabs/dioxus synced 2025-02-21 16:18:26 +00:00
dioxus/packages/web/examples/hello.rs
2021-02-24 04:03:52 -05:00

14 lines
276 B
Rust

use dioxus_core::prelude::*;
use dioxus_web::WebsysRenderer;
fn main() {
wasm_bindgen_futures::spawn_local(WebsysRenderer::start(Example));
}
static Example: FC<()> = |ctx, _props| {
ctx.view(html! {
<div>
"Hello world!"
</div>
})
};