reconciliation
The process where React compares the new tree of elements with the previous one and works out the smallest set of changes to the page.
In more detail
Reconciliation happens in the render phase and uses the diffing heuristics: elements of a different type are replaced, and keys identify list items. The result is applied to the DOM in the commit phase. The part of React that does this is called the reconciler; since React 16 it is built on Fiber.
Related terms
- diffing algorithm — The rules React uses to compare an old element tree with a new one and find what changed.
- Fiber — The internal object React keeps for each component instance, and the name of the React 16+ engine built on those objects.
- render phase — The part of an update where React calls your components and compares the results with the previous tree, without touching the page.
- commit phase — The part of an update where React applies the calculated changes to the real DOM, all at once and without interruption.
Taught in
- JSX Transpilation: createElement, JSX Runtime, React Elements — React 19 & Modern Component Architecture
- Complex State with useReducer: State Machines And Action Types — React 19 & Modern Component Architecture
- Virtual DOM vs Real DOM: The Reconciliation Cost Model — React 19 & Modern Component Architecture
- React Fiber Architecture: Work Units, Priority And Commits — React 19 & Modern Component Architecture
- Keys In Depth: Identity Preservation And Identity Resetting — React 19 & Modern Component Architecture
- SyntheticEvent System: Event Delegation in Modern React — React 19 & Modern Component Architecture
- useRef Mechanics: DOM References And Mutable Persistent State — React 19 & Modern Component Architecture
- useId: Generating Stable Accessible Form Element Identifiers — React 19 & Modern Component Architecture
- Concurrent Mode: Interruptible Work And Lane Priority — React 19 & Modern Component Architecture
- useOptimistic: Instantaneous UI Updates with Rollback — React 19 & Modern Component Architecture