Function run
Source pub async fn run(virtual_dom: VirtualDom, web_config: Config) -> !
Expand description
Runs the app as a future that can be scheduled around the main thread.
Polls futures internal to the VirtualDOM, hence the async nature of this function.
§Example
ⓘlet app_fut = dioxus_web::run_with_props(App, RootProps { name: String::from("foo") });
wasm_bindgen_futures::spawn_local(app_fut);