Roadmap › React (with Hooks, React 19 & Next.js basics) › Module: Building Real Apps
Lessons in this course (17)

16. Performance optimisation

Advanced★ Must knowLesson 16 of 17
  1. Measure first: React DevTools Profiler, why-did-you-render, Lighthouse/Core Web Vitals.
  2. Avoid unnecessary re-renders: keep state as local as possible, split components, memo + stable props (or React Compiler), split contexts.
  3. Correct keys for lists; virtualise long lists (TanStack Virtual, react-window).
  4. Code splitting with lazy/dynamic import and route-based splitting.
  5. useTransition/useDeferredValue to keep typing responsive during heavy updates.
  6. Debounce expensive inputs; avoid creating objects/functions inline for memoised children (or use the compiler).
  7. Server Components/SSR to ship less JS; image optimisation; caching server data (TanStack Query).
  8. Production build (vite build) — dev mode is much slower.