Component
The main class that will be extended when a new componenet is created. Extend this class with es6 syntax
Example:
import { Component } from "./core/bane"
class ArticlesComponent extends Component {
render() {
}
}
Test:
Constructor Summary
| Public Constructor | ||
| public |
constructor(options: *) |
|
Method Summary
| Public Methods | ||
| public |
build(data: *) |
|
| public |
getInitialState(): * |
|
| public |
|
|
| public |
publish(topic: *, data: *) |
|
| public |
render() |
|
Public Constructors
public constructor(options: *) source
Params:
| Name | Type | Attribute | Description |
| options | * |