From 009dc7103028cfa7fdd6eaee6070d30c55889fb1 Mon Sep 17 00:00:00 2001 From: PenLa <84666792+PenLa@users.noreply.github.com> Date: Sat, 26 Jun 2021 22:43:29 +0800 Subject: [PATCH] Update beginWork.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 此处应为 rootFiber --- docs/process/beginWork.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/process/beginWork.md b/docs/process/beginWork.md index 517a46c..c8330e5 100644 --- a/docs/process/beginWork.md +++ b/docs/process/beginWork.md @@ -33,7 +33,7 @@ function beginWork( - `update`时:如果`current`存在,在满足一定条件时可以复用`current`节点,这样就能克隆`current.child`作为`workInProgress.child`,而不需要新建`workInProgress.child`。 -- `mount`时:除`fiberRootNode`以外,`current === null`。会根据`fiber.tag`不同,创建不同类型的`子Fiber节点` +- `mount`时:除`rootFiber`以外,`current === null`。会根据`fiber.tag`不同,创建不同类型的`子Fiber节点` ```js function beginWork(