YuJian
3 years ago
2 changed files with 6 additions and 2 deletions
@ -1,2 +1,5 @@ |
|||||||
# beginWork 和 completeWork |
# beginWork 和 completeWork |
||||||
在 [[React 源码的碎片记录]] 中写了 |
在 [[React 源码的碎片记录]] 中写了,在 React 的 Fiber 递归阶段会有两个函数,分别执行递和归两个动作,它们就是 beginWork 和 completeWork |
||||||
|
```javascript |
||||||
|
function beginWork(current, workInProgress, renderLanes) {} |
||||||
|
``` |
||||||
|
Loading…
Reference in new issue