Code examples
Every example from the book, live in your browser
The book's 105 interactive examples, runnable and editable right here. Pick a chapter to browse its examples. Change the code and watch the result update.
- Chapter 17 examples
Intro to re-renders
Browse examples - Chapter 23 examples
Elements, children as props, and re-renders
Browse examples - Chapter 36 examples
Configuration concerns with elements as props
Browse examples - Chapter 46 examples
Advanced configuration with render props
Browse examples - Chapter 57 examples
Memoization with useMemo, useCallback and React.memo
Browse examples - Chapter 68 examples
Deep dive into diffing and reconciliation
Browse examples - Chapter 75 examples
Higher-order components in modern world
Browse examples - Chapter 87 examples
React Context and performance
Browse examples - Chapter 99 examples
Refs: from storing data to imperative API
Browse examples - Chapter 105 examples
Closures in React
Browse examples - Chapter 116 examples
Implementing advanced debouncing and throttling with Refs
Browse examples - Chapter 124 examples
Escaping Flickering UI with useLayoutEffect
Browse examples - Chapter 139 examples
React portals and why do we need them
Browse examples - Chapter 149 examples
Data fetching on the client and performance
Browse examples - Chapter 158 examples
Data fetching and race conditions
Browse examples - Chapter 166 examples
Universal error handling in React
Browse examples
4.8 on Amazon · 4,500+ developers
Ready to actually understand React?
Stop guessing at re-renders and memoization. Get the 16 chapters that explain how React really works.
14-day money-back guarantee. Instant download, DRM-free.