MCPcopy
hub / github.com/NervJS/nerv / mountVNode

Function mountVNode

packages/nerv/src/lifecycle.ts:78–80  ·  view source on GitHub ↗
(vnode, parentContext: any, parentComponent?)

Source from the content-addressed store, hash-verified

76}
77
78export function mountVNode (vnode, parentContext: any, parentComponent?) {
79 return createElement(vnode, false, parentContext, parentComponent)
80}
81
82export function getContextByContextType (vnode: FullComponent, parentContext: ParentContext) {
83 const contextType = vnode.type.contextType

Callers 2

renderFunction · 0.90
mountComponentFunction · 0.70

Calls 1

createElementFunction · 0.70

Tested by

no test coverage detected