by Timur Dautov

How React Works Under the Hood

In this article, I collected some useful links to understand how React works under the hood. The timing of effects is covered in useEffect vs useLayoutEffect.

  • Render and Commit - the official explanation of what happens between a state update and the screen changing. Start here.
  • Build your own React - rebuilds React from scratch step by step, including fibers, reconciliation, and hooks.
  • React Source Code Walkthrough - a guided tour of the actual React source code, for when you want the real implementation.
  • A Complete Guide to useEffect - explains the render and effect mental model behind useEffect.
  • Implementation Notes - legacy docs on the stack reconciler that React used before Fiber. Outdated, but a readable introduction to the idea of reconciliation.

Comments