FlashcardNot attempted
Render phase vs commit phase
Recall it before you reveal
What happens in the render phase and the commit phase, and which can be interrupted?
Space to reveal
Show answer & explanation
Render phase: React calls your components, builds the new element tree and reconciles (diffs) it against the current one. It must be pure: no side effects, because React may pause, restart or discard it (StrictMode double-invokes it to catch impurity).
Commit phase: React applies the minimal DOM changes, attaches refs, then runs effects. It is synchronous and can't be interrupted: users never see a half-applied update.