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

Function mountComponent

code/src/runtime-core/renderer.ts:344–352  ·  view source on GitHub ↗
(initnalVNode, container, parentComponent, anchor)

Source from the content-addressed store, hash-verified

342 };
343
344 const mountComponent = (initnalVNode, container, parentComponent, anchor) => {
345 const instance = (initnalVNode.component = createComponentInstance(
346 initnalVNode,
347 parentComponent
348 ));
349
350 setupComponent(instance);
351 setupRenderEffect(instance, initnalVNode, container, anchor);
352 };
353
354 const setupRenderEffect = (instance, initnalVNode, container, anchor) => {
355 instance.update = effect(

Callers 1

processComponentFunction · 0.70

Calls 3

createComponentInstanceFunction · 0.90
setupComponentFunction · 0.90
setupRenderEffectFunction · 0.70

Tested by

no test coverage detected