Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
function updateFunctionComponent(workInProgress) {
  prepareToUseHooks(workInProgress, nextRenderExpirationTime)

  let component = workInProgress.type
  let nextChildren = component(workInProgress.pendingProps)
  nextChildren = finishHooks(nextChildren) // 用来处理hooks
  reconcileChildren(workInProgress, nextChildren)
  return workInProgress.child
}