unmount

Unmount the component from its container element.

Parameters

  • remove : boolean(=false) Remove the rendered output.

Example

import { Component } from "combo-js";

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

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

Last updated