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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i mobjs

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • kchan