MCPcopy Create free account
hub / github.com/MMmaXingXing/mini-vue / createVNode

Function createVNode

copy_code/src/runtime-core/vnode.ts:1–8  ·  view source on GitHub ↗
(type, props?, children?)

Source from the content-addressed store, hash-verified

1export const createVNode = (type, props?, children?) => {
2 const vnode = {
3 type,
4 props,
5 children
6 };
7 return vnode;
8};

Callers 2

hFunction · 0.90
mountFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected