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.2
HostRootLegacyRoot
<AutoBatchingDemo>Render
count: 1firstEffect ⇢
p#batch-readoutUpdate
3 commits
React 18.3.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.
- L0Fiber basicsA Counter, its Fiber tree, Render vs Commit, and the double buffer.
- L1BatchingWhy three setState calls cost React 17 three commits — and React 18 only one.
- L2Effect list vs subtreeFlagsHow Commit finds the fibers that changed, before and after React 18.
- L3Time-slicingInterrupt a transition mid-render and watch React throw away the WIP tree.
- L4SuspenseFallbacks, sibling pre-warming and what changed in React 19.
- L5use() and the CompilerConditional 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.