created

Invoked after the component was created.

Example

import { Component } from "combo-js";

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

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

Notes

Used to define default values for props and state.

Last updated