Skip to content

fedeghe/hokuto

Repository files navigation

hokuto track

Coverage Status

Experimental dom engine

hokuto.render({
    config: {
        state: { n: 50 },
        children: [{
            tag:'span',
            html: function() {
                this.node.innerHTML = this.parent.state.n;
            },
            ref: 'lab'
        },{
            tag: 'input',
            attrs: { type: 'range' },
            onInput: function(e) {
                this.getByRef('lab').innerHTML = e.target.value;
            }
        }]
    }
})