↑ Town 01 · The framework quarter

Below the mayor

A dive into React, from the source

The mayor keeps a copy of the whole town in his notebook, redraws it, and fixes only the house that changed. These dives go down into the repo that makes the notebook work, one floor at a time: what it is made of, how a tag becomes an object, how that object becomes the thing React keeps.

Start at Dive 01 ↓4 of 14 drawn so far

  1. 01The town hall, floor by floorThe repo itselfWhat facebook/react is written in, why its source does not run as written, how its 41 packages divide the work, and the five releases that shaped them.12 scenesthe whole building
  2. 02Other plugs for the same socketThe rest of the packagesThe other 23 packages: five renderers that test the host-config seam, ten DevTools packages around one implementation, the kit React tests itself with, and three ways it retires an API.12 scenesreact-dom
  3. 03The order slip at the front counterFrom JSX call site to elementWhat a JSX tag compiles to, the short function React runs for it, the five-field object that comes back, and why the development version of that object is not the one you ship.12 scenesreact
  4. 04The filing cards in the planning officeFrom element to fiberThe object the reconciler keeps between renders: what a fiber stores, why the tree is a linked list and not recursion, what the alternate is, and how a bitfield lets commit skip untouched subtrees.13 scenesreact-reconciler