mobjs

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i mobjs

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • kchan