unmounting

Invoked before the component is unmounted.

Example

import { Component } from "combo-js";

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

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

Last updated