Feat: wire up rebuild
This commit is contained in:
1 parent
4d01455729
commit
06ae4fc178
11 files changed
+210
-170
No files matched your search
@@ -4,15 +4,10 @@ use dioxus_web::WebsysRenderer;
|
||||
fn main() {
|
||||
// todo: set this up so the websys render can spawn itself rather than having to wrap it
|
||||
// almost like bundling an executor with the wasm version
|
||||
wasm_bindgen_futures::spawn_local(async {
|
||||
WebsysRenderer::new(Example)
|
||||
.run()
|
||||
.await
|
||||
.expect("Dioxus Failed! This should *not* happen!")
|
||||
});
|
||||
wasm_bindgen_futures::spawn_local(WebsysRenderer::start(Example));
|
||||
}
|
||||
|
||||
static Example: FC<()> = |ctx, props| {
|
||||
static Example: FC<()> = |ctx, _props| {
|
||||
ctx.view(html! {
|
||||
<div>
|
||||
"Hello world!"
|
||||
|
||||
Reference in new issue
Block a user