2018-09-19 23:35:38 +08:00
|
|
|
# @vue/core
|
|
|
|
|
|
|
|
> This package is published only for typing and building custom renderers. It is NOT meant to be used in applications.
|
2018-09-20 12:17:20 +08:00
|
|
|
|
|
|
|
``` ts
|
|
|
|
import { createRenderer, h } from '@vue/core'
|
|
|
|
|
|
|
|
const { render } = createRenderer({
|
|
|
|
nodeOps,
|
|
|
|
patchData,
|
|
|
|
teardownVNode
|
|
|
|
})
|
|
|
|
|
|
|
|
render(h('div'), container)
|
|
|
|
```
|