Function async_ui_web::mount

source ·
pub fn mount<F: Future + 'static>(child_future: F)
Expand description

Start running the given future, letting it render into the <body> of the document.

async fn my_app() {
    "Hello World".render().await;
}
mount(my_app());

The mount_at function provides more options, if you need.