Function async_ui_web::mount_at
source · pub fn mount_at<F: Future + 'static>(
child_future: F,
node: Node
) -> Task<F::Output>Expand description
Start running the given future, letting it render into the given node.
let mounted_task = mount_at(my_app(), web_sys::window().unwrap().document().unwrap().into());
mounted_task.detach();The return value is a [Task]. When dropped, it will unmount your app. To prevent unmounting, call [detach][Task::detach] first.