Skip to content

Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

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>.
  1. 010How does reconciliation decide what to update in the DOM?Corehard
  2. 020Why does React need keys, and what goes wrong with index keys?Coremedium
  3. 030When does React keep a component's state, and when does it reset it?Corehard
  4. 040How do Portals render outside the parent DOM node, and how do their events bubble?medium
  5. 050How does <Activity> hide UI without losing its state?medium