vue3-yuanma/packages/renderer-dom
2018-09-20 18:57:13 -04:00
..
src refactor: ensure watcher callbacks are deferred 2018-09-20 18:57:13 -04:00
.npmignore chore: setup all packages 2018-09-19 12:26:50 -04:00
index.js chore: setup all packages 2018-09-19 12:26:50 -04:00
package.json build: add sideEffects: false flags 2018-09-20 00:02:48 -04:00
README.md chore: setup all packages 2018-09-19 12:26:50 -04:00

@vue/renderer-dom

import { h, render, Component } from '@vue/renderer-dom'

class App extends Component {
  data () {
    return {
      msg: 'Hello World!'
    }
  }
  render () {
    return h('div', this.msg)
  }
}

render(
  h(App),
  document.getElementById('app')
)