Chapter 05
Reconciliation and identity
How React decides what changed: comparing element trees by type and position, keys as identity, when state is kept or thrown away, Portals, and keeping hidden UI alive with<Activity>.- 010How does reconciliation decide what to update in the DOM?Corehard
- 020Why does React need keys, and what goes wrong with index keys?Coremedium
- 030When does React keep a component's state, and when does it reset it?Corehard
- 040How do Portals render outside the parent DOM node, and how do their events bubble?medium
- 050How does
<Activity>hide UI without losing its state?medium