Skip to content

Commit

Permalink
docs: update docs/React/Fiber.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qiufeihong2018 committed May 9, 2024
1 parent 0003754 commit bc0da25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/React/Fiber.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

`JavaScript `引擎和页面渲染引擎两个线程是互斥的,当其中一个线程执行时,另一个线程只能挂起等待

如果 `JavaScript` 线程长时间地占用了主线程,那么渲染层面的更新就不得不长时间地等待,界面长时间不更新,会导致页面响应度变差,用户可能会感觉到卡顿
如果 `JavaScript` 线程长时间地占用了主线程,那么渲染层面的更新就不得不长时间地等待,界面长时间不更新,会导致页面响应速度变差,用户可能会感觉到卡顿

而这也正是 `React 15``Stack Reconciler `所面临的问题,当 `React `在渲染组件时,从开始到渲染完成整个过程是一气呵成的,无法中断

Expand Down

0 comments on commit bc0da25

Please sign in to comment.