You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
657 B

  1. # @vue/runtime-core
  2. > This package is published only for typing and building custom renderers. It is NOT meant to be used in applications.
  3. For full exposed APIs, see `src/index.ts`.
  4. ## Building a Custom Renderer
  5. ```ts
  6. import { createRenderer } from '@vue/runtime-core'
  7. const { render, createApp } = createRenderer({
  8. patchProp,
  9. insert,
  10. remove,
  11. createElement,
  12. // ...
  13. })
  14. // `render` is the low-level API
  15. // `createApp` returns an app instance with configurable context shared
  16. // by the entire app tree.
  17. export { render, createApp }
  18. export * from '@vue/runtime-core'
  19. ```
  20. See `@vue/runtime-dom` for how a DOM-targeting renderer is implemented.