Module 7 of 7

React Internals

How React works under the hood, meaning reconciliation, the Fiber architecture, the work loop, the commit phase, scheduling and hooks, at the level a frontend developer needs to reason about their own code. It's not a workshop write-up. The notes are built from react.dev, the React team's own architecture writing, and the React 19.2.5 source (react-dom-client.development.js, scheduler.development.js), which every algorithm here was checked against.

Everything follows one throughline. Your components return elements → React reconciles them against a tree of fibers → it walks that tree in a loop it can pause → it commits the result to the DOM in one go. The optimizations in React Performance and the concurrent features in React Suspense are all consequences of that pipeline.

New to this? Start with React Internals - Start Here: the reading order, a plain-English glossary, and interview-value labels ( must know · good to know · skip).

Start with “Start Here”All notesLost in function names? Engine mapInterview questions

The pipeline

1Trigger
  • root.render()
  • setState / dispatch
  • lane picked, update queued
Read →
2Render phase
pure · interruptible
  • call components (beginWork)
  • reconcile children (diff)
  • prepare DOM (completeWork)
Read →
3Commit phase
sync · atomic
  • before mutation
  • mutation: DOM writes
  • swap trees
  • layout: useLayoutEffect, refs
Read →
4Browser
  • style / layout
  • paint
5After paint
  • passive effects
  • useEffect
Read →
Every update goes through the same five steps. Only the render phase can pause.

The notes

Read them in order. Each one builds on the ones before it.

01Must know

Start Here

The beginner entry point: reading order, a plain-English glossary and the top interview questions.

Read
02Must know

Render and Commit

The pipeline: trigger → render → commit → paint → effects, why render must be pure, and what the "virtual DOM" really is.

Read
03Must know

Reconciliation

The O(n³) → O(n) heuristics (type and key), and why state is tied to position in the tree.

Read
04Must know

React Fiber

Why the stack reconciler couldn’t pause, what a fiber holds, the child/sibling/return tree and double buffering.

Read
05Must know

Hooks Under the Hood

The hook linked list, why the Rules of Hooks exist, the setState update queue and the eager bailout.

Read
07Good to know

The Work Loop

beginWork / completeWork, depth-first traversal without recursion, and bailouts.

Read
11Must know

How React Works, Start to Finish

A real 2-page app followed from JSX to pixels: Babel output, element objects, every component call, commit, clicks, lists and a page switch.

Read
12Must know

React Engine Map

Lost in function names? The map of React’s internals: what calls what, which names matter, a plain-English glossary and flashcards.

Read