Component
Definition
function Component(callback: function, ...states: State) {
return HTMLElement
}
Input
callback
: functional component or a callback component to render when state is changedstates[]
: array of state objects returned from State() function to which the component will bind to
Returns HTMLELement
The HTMLElement will be returned from the callback, after being wrapped under a div element
Last updated