Performance Practices: Lists, Transitions, Images and Web Vitals
Learn Performance Practices: Lists, Transitions, Images and Web Vitals (Phase 12 · Performance Optimization (Important), ReactJS) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Big lists and expensive renders • Rendering thousands of rows is slow regardless of memoisation. Virtualise : render only the visible rows ( react-window , @tanstack/react-virtual ). Paginate on the server when possible. • Use stable key s, avoid creating components in render, and keep render functions cheap (move heavy computation into useMemo or a Web Worker). • Avoid anonymous function props to memoised children and avoid copying large arrays unnecessarily.