mount

Mount the component to a container element.

Parameters

  • el : object The element.

  • props : object(={}) The props.

Example

import { Component } from "combo-js";

const Example = new class extends Component {  
    mounted() {
        console.log("The component was mounted.")
    }
}();

Example.mount(document.getElementById("root"));

Last updated