mini-react
wipA virtual DOM and fiber reconciler built from scratch.
A from-scratch implementation of React's core — virtual DOM diffing, a fiber-based work loop, hooks (useState, useEffect, useRef), and a commit phase that applies DOM mutations. Not a toy: it handles keyed lists, conditional rendering, and component unmounting correctly. Built to deeply understand what React is actually doing.
stack
TypeScriptRollup
highlights
- Fiber-based incremental work loop with interruptible rendering
- Reconciler correctly diffs keyed lists and handles component unmounting
- Implements useState, useEffect, useRef, and useMemo from first principles
- Commit phase separates side effects from render work, matching React's model