mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-24 05:03:06 +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>
|
|
})
|
|
};
|