Skip to main content

mount

Function mount 

Source
pub fn mount(
    registry: &Arc<ComponentRegistry>,
    name: &str,
    params: Params,
    key: Option<String>,
    attributes: Map<String, Value>,
) -> Result<Rendered, LivewireError>
Expand description

Mounts the component name, and renders it to the markup the page embeds.

ยงErrors

Fails when the component is not registered, when a hook fails, or when the view renders no single root element.