init (graduate from prototype)
This commit is contained in:
21
packages/runtime-dom/README.md
Normal file
21
packages/runtime-dom/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# @vue/runtime-dom
|
||||
|
||||
``` js
|
||||
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')
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user