props

Retuns an object containing the component props.

Returns

object The props

Example

import { Component } from "combo-js";

const Example = new class extends Component {  
    render() {
        return `
            <div>Hello ${this.props.name}</div>
        `;
    }	 
}();

Example.mount(document.getElementById("root"), {
    name: "World"
});

Last updated