vue3-yuanma/packages/renderer-dom
2018-09-19 12:26:50 -04:00
..
src chore: setup all packages 2018-09-19 12:26:50 -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 chore: setup all packages 2018-09-19 12:26:50 -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')
)