vue3-yuanma/packages/renderer-dom/README.md

22 lines
285 B
Markdown
Raw Normal View History

2018-09-20 00:26:50 +08:00
# @vue/renderer-dom
2018-09-19 23:35:38 +08:00
``` js
2018-09-20 00:26:50 +08:00
import { h, render, Component } from '@vue/renderer-dom'
2018-09-19 23:35:38 +08:00
class App extends Component {
data () {
return {
msg: 'Hello World!'
}
}
render () {
return h('div', this.msg)
}
}
render(
h(App),
document.getElementById('app')
)
```