1. Understanding Unnecessary Renders
React re-renders a component whenever its state or props change. Profiling with React DevTools Profiler reveals which components render most frequently.
2. React.memo for Pure Components
Wrap functional components with `React.memo()` to skip re-renders when props haven't changed by reference equality. Ideal for expensive list items.
3. useMemo for Computed Values
Use `useMemo` to memoize expensive computed results — such as filtered datasets or complex formatting — preventing recalculation on every render.
4. useCallback for Stable References
Stabilize event handler references passed to child components with `useCallback`. This prevents children wrapped in `React.memo` from needlessly re-rendering.
5. Code Splitting with React.lazy
Use `React.lazy` with `Suspense` to split large page components into separate chunks, loaded on demand. Reduces initial bundle size dramatically.
6. Virtualization for Long Lists
For rendering thousands of items, use `react-window` or `react-virtual` to render only the visible viewport, keeping memory and paint costs negligible.