Source Map
February 9, 20261 min readpart 12/13
Key files in the React monorepo ( packages/react-reconciler/src/):
| File | What it does |
|---|---|
ReactFiberWorkLoop.js | The render/commit loop — start here |
ReactFiberBeginWork.js | How each Fiber type is processed going down |
ReactFiberCompleteWork.js | How work is completed going up |
ReactFiberHooks.js | The entire hooks implementation |
ReactChildFiber.js | List diffing / key reconciliation |
ReactFiberLane.js | The lane priority model |
Scheduler.js | Userspace scheduler (independent of React) |
Further reading
- React Internals Explorer (tool) Interactive visualizer showing Fiber tree construction and hook state step by step
- Overall of React Internals (deep dive) jser.dev road map for navigating the React codebase
- React Internals Deep Dive (video series) Philip Fabianek walks through source code file by file