vue3-yuanma/packages/runtime-dom
2019-05-28 13:27:31 +08:00
..
src wip: minimal component implementation 2019-05-28 13:27:31 +08:00
.npmignore refactor: rename packages 2018-10-26 15:44:50 -04:00
index.js refactor: rename packages 2018-10-26 15:44:50 -04:00
jsx.d.ts refactor: rename packages 2018-10-26 15:44:50 -04:00
package.json build: update runtime-dom global name 2018-10-26 17:51:09 -04:00
README.md refactor: rename packages 2018-10-26 15:44:50 -04:00

@vue/runtime-dom

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

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

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