Inside Fiber: the in-depth overview you wanted a TLDR for
summary
Maps out React’s fiber as a stack-frame-like unit with metadata (props, state, children) and shows almost 4,000 fibers in a real app; demonstrates reading and querying that metadata to see what work each fiber represents. Builds a generator-based scheduler (a 40-line scheduler) that uses iterator.next and yields back to the event loop every ~5ms to avoid jank, reproducing the effect of React 18’s useTransition equivalent. Explains Suspense as throwing promises and connects hooks to algebraic effects and continuations.
AI-written summary · about
