vue3-yuanma/packages/renderer-dom
2018-09-24 18:51:58 -04:00
..
src wip: refactor attrs inheritance 2018-09-24 18:51:58 -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 refactor: depend on scheduler directly in core instead of injecting via createRenderer 2018-09-21 13:34:00 -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')
)