mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-18 00:23:07 +00:00
14 lines
278 B
Rust
14 lines
278 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.render(html! {
|
|
<div>
|
|
"Hello world!"
|
|
</div>
|
|
})
|
|
};
|