render

Invoked when the component is mounted, updated, or refreshed.

Returns

string The rendered output.

Example

import { Component } from "combo-js";

const Example = new class extends Component {  
    render() {
        return `
            <div>Hello World</div>
        `;
    }
}();

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

Last updated