mobjs
v0.0.2
Published
a view layer that mob.
Downloads
3
Readme
mob.js
Install
$ npm install --save mobjs
Usage
import {view, mount} from 'mobjs'
view({
data() {
return {
count: 0
}
},
click() {
this.set('count', this.count + 1)
},
render(h) {
return h(
'div#count',
{on: {click: this.click}}
this.count
)
}
})
mount(view(), '#app')
License
MIT © EGOIST