EscapeTheSurface
Search...
⌘K
React
46 lessons in this category.
Foundation
What is the DOM and why is it slow
The UI = f(state) idea
What was web dev like before React
The core problem: keeping UI in sync with data
Components
What is a component, really
JSX, what is it and why does it exist
Props, why do components take arguments
Composition vs inheritance
The component tree
State
What is state, really
Why `let count = 0` breaks completely
useState internals, how does React remember state between renders
Why state updates are async / batched
Derived state vs stored state
State lifting
Re Renders
What triggers a re-render
What re-render actually means
The reconciler's job
When re-renders are NOT a problem
When re-renders ARE a problem
Virtual Dom And Reconciliation
What is the Virtual DOM, actually
Why not just re-render the whole real DOM
The diffing algorithm, O(n) heuristics
Keys, why they exist and what breaks without them
Bailout conditions
Useeffect
What is a side effect
Why you can't do side effects in render
useEffect's mental model
The dependency array, what it actually means
The cleanup function
Common useEffect mistakes
useEffect vs useLayoutEffect
Context Api
What is prop drilling, why is it painful
Context is a broadcast channel
Why Context re-renders everything that consumes it
When to use Context vs prop drilling vs a state lib
Performance
React.memo and useCallback
useMemo, expensive computation caching
The memoization cost
The React Compiler (React 19)
React Internals
Why React needed to rewrite its core (pre-Fiber)
What is Fiber, really
The two-phase render: Render phase vs Commit phase
The work loop and the Scheduler
Lanes, Concurrent Mode, and Priority-Based Rendering
How hooks are stored on the Fiber node