vue3-yuanma/packages/renderer-dom
2018-10-16 17:41:59 -04:00
..
src refactor: use shared util, remove unused regex 2018-10-16 15:53:23 -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 build: adjust types build script 2018-10-16 17:41:59 -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')
)