Skip to main content

mount_body

Function mount_body 

Source
pub fn mount_body<F>(render_fn: F)
where F: FnOnce() -> VirtualNode,
Expand description

Mounts the given virtual DOM tree to the document body.

§Arguments

  • FnOnce() -> VirtualNode + 'static - A closure that returns the virtual DOM tree to render.

§Panics

Panics if the document body cannot be found.