update

Update a mounted component then re-render it.

Parameters

  • values : object(={})

Example

import { Component } from "combo-js";

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

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

Last updated