UNPKG

hyperviews

Version:

View template language based targeting hyperscript

8 lines (7 loc) 246 B
window.view = function view (state, actions) { return h('main', null, [ h('h1', null, (state.count)), h('button', { 'onclick': actions.down, 'disabled': (state.count <= 0) }, '-'), h('button', { 'onclick': actions.up }, '+') ]) }