See what React does when you click.

Write a component, interact with it, and replay every render and commit — side by side across React 16, 17, 18 and 19.

click · "Trigger Async setTimeout (3× setState)"
React 17.0.2commit 0/3
HostRootLegacyRoot
<AutoBatchingDemo>Render
count: 1firstEffect ⇢
p#batch-readoutUpdate
3 commits
React 18.3.1commit 0/1
HostRootConcurrentRoot
<AutoBatchingDemo>Schedule
count: 0subtree:Update
p#batch-readoutUpdate
1 commit

Same click, two Reacts: React 17 commits 3 times, React 18 batches into 1.

The course

Six short lessons. Each one is a live workbench, not a video.

  1. L0v19
    Fiber basics
    A Counter, its Fiber tree, Render vs Commit, and the double buffer.
  2. L1v17 vs v18
    Batching
    Why three setState calls cost React 17 three commits — and React 18 only one.
  3. L2v17 vs v18
    Effect list vs subtreeFlags
    How Commit finds the fibers that changed, before and after React 18.
  4. L3v18 vs v19
    Time-slicing
    Interrupt a transition mid-render and watch React throw away the WIP tree.
  5. L4v18 vs v19
    Suspense
    Fallbacks, sibling pre-warming and what changed in React 19.
  6. L5v19 vs v19 + Compiler
    use() and the Compiler
    Conditional use(), and what the React Compiler memoizes for you.

Four real React versions, running in your browser

  • React 16.14.0Hooks debut, LegacyRoot, expirationTime, and the firstEffect → nextEffect chain.
  • React 17.0.231-bit priority lanes bitmasks arrive while Commit still walks the effect list.
  • React 18.3.1ConcurrentRoot, automatic microtask batching, time-slicing, and static subtreeFlags.
  • React 19.3.1Conditional use(), immediate Suspense fallback + pre-warming, <Activity>, and Compiler memoCache.