0.1.0 • Published 7 years ago

vanyar v0.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

npm

嗨呀 我想造轮子.

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'
});