React Docs
Learn
Guides
Reference
Explanation
Examples
Community
⌘K
Sections
Sections
Learn
Guides
Reference
Explanation
Examples
Community
🇨🇳
简体中文
解释
渲染原理
渲染原理
渲染不是“把组件函数再跑一遍”那么简单,它涉及对比、调度、提交与可中断的更新过程。
TL;DR
Reconciliation:计算下一棵 UI 树(可被打断/重试)。
Commit:把变更提交到 DOM(同步、不可中断)。
优先级:不同更新有不同紧急程度(输入更紧急、后台更新更不紧急)。
这篇文章有帮助吗?
有帮助
没帮助
Previous / Next
Previous
React 心智模型
Next
并发与 Suspense
Related Links
Guides:把原理落到工程实践
Reference:查阅 API 事实
Learn:从任务入门