# Component

### Definition

```javascript
function Component(callback: function, ...states: State) {
    return HTMLElement
}
```

### Input

* `callback` : functional component or a callback component to render when state is changed
* `states[]` : array of state objects returned from [State()](https://creatorlabs.gitbook.io/boltui-docs-preview/api-reference/index/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
