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

Method init

packages/nerv/src/full-component.ts:50–55  ·  view source on GitHub ↗
(parentContext, parentComponent)

Source from the content-addressed store, hash-verified

48 }
49
50 init (parentContext, parentComponent) {
51 options.beforeMount(this)
52 const dom = mountComponent(this, parentContext, parentComponent)
53 options.afterMount(this)
54 return dom
55 }
56
57 update (previous, current, parentContext, domNode?) {
58 this.context = getContextByContextType(this, parentContext)

Callers

nothing calls this directly

Calls 1

mountComponentFunction · 0.90

Tested by

no test coverage detected