source: node_modules/@vue/runtime-core/README.md

Last change on this file was 57e58a3, checked in by ste08 <sjovanoska@…>, 4 months ago

Initial commit

  • Property mode set to 100644
File size: 657 bytes
Line 
1# @vue/runtime-core
2
3> This package is published only for typing and building custom renderers. It is NOT meant to be used in applications.
4
5For full exposed APIs, see `src/index.ts`.
6
7## Building a Custom Renderer
8
9```ts
10import { createRenderer } from '@vue/runtime-core'
11
12const { render, createApp } = createRenderer({
13 patchProp,
14 insert,
15 remove,
16 createElement,
17 // ...
18})
19
20// `render` is the low-level API
21// `createApp` returns an app instance with configurable context shared
22// by the entire app tree.
23export { render, createApp }
24
25export * from '@vue/runtime-core'
26```
27
28See `@vue/runtime-dom` for how a DOM-targeting renderer is implemented.
Note: See TracBrowser for help on using the repository browser.