Building React From Scratch
summary
Builds a tiny React clone called dilithium in plain JavaScript and actually runs it, implementing createElement/createClass/render plus a base Component with synchronous setState, props and state. Demonstrates a counter and color swatch app that renders and updates, but strips features: no keys, no stateless functional components, no event handling, simplified DOM handling. Shows the diffing reconciler with mount/update/unmount and batched-ish operations, a working but intentionally minimal, nonproduction implementation.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 5:01Code Overview
- 6:11Create Element
- 7:20Render Element
- 11:08Should Update Component
- 12:25Component Mount
- 13:59Internal Component Lifecycle
- 15:02Component API
- 19:42DOM Wrapper
- 23:16MultiChild
- 32:05Conclusion








