Mount the component to a container element.
el : object The element.
props : object(={}) The props.
import { Component } from "combo-js"; const Example = new class extends Component { mounted() { console.log("The component was mounted.") } }(); Example.mount(document.getElementById("root"));
<div id="root"></div>
Last updated 6 years ago