[−][src]Function smithy_core::mount
pub fn mount(component: Box<dyn Component>, el: Element)
Mounts the smithy app at the specified element.
Examples
let app = smd!(<div>hello world</div>);
let el_opt = web_sys::window()
.and_then(|w| w.document())
.query_selector("#app");
if let Some(el) = el_opt {
smithy::mount(app, el);
}