MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / updateFunctionComponent

Function updateFunctionComponent

mini-react/src/mini-react.js:84–92  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

82 let stateHookIndex = null
83
84 function updateFunctionComponent(fiber) {
85 wipFiber = fiber
86 stateHookIndex = 0
87 wipFiber.stateHooks = []
88 wipFiber.effectHooks = []
89
90 const children = [fiber.type(fiber.props)]
91 reconcileChildren(fiber, children)
92 }
93
94 function updateHostComponent(fiber) {
95 if (!fiber.dom) {

Callers 1

performUnitOfWorkFunction · 0.85

Calls 1

reconcileChildrenFunction · 0.85

Tested by

no test coverage detected