vue3-yuanma/packages/renderer-dom
2018-10-16 15:47:51 -04:00
..
src refactor: option merging + extract helper functions 2018-10-16 15:47:51 -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
jsx.d.ts types: basic tsx support 2018-10-13 20:46:30 -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')
)