0.1.0 • Published 7 years ago
嗨呀 我想造轮子.
Examples
class Button extends Component {
static template = (
`<div>
<h1>Hello {{name}}!</h1>
</div>`
);
initState() {
return {
name: 'abs'
};
}
constructor(options) {
super(options);
}
}
let btn = new Button();
btn.mount(document.body);
btn.setState({
name: 'Vanyar'
});