wasted render
A re-render that produces exactly the same output as before, so the work changed nothing on screen.
In more detail
A few are harmless; they matter when a large or slow subtree re-renders on every keystroke. The Profiler finds them, and colocating state or memoizing the heavy child removes them.
Related terms
- render — In React, calling a component to find out what it should display now; a re-render is any render after the first.
- React.memo — A React function that wraps a component so it skips re-rendering when its props are shallowly equal to the previous ones.
- Profiler — A React component, and a React DevTools tab, that measures how often and how long parts of the tree render.
Taught in
- Avoiding Effect Antipatterns: Derived State And Events — React 19 & Modern Component Architecture
- Render Diagnostics: Profiling Re-Renders with React DevTools — React 19 & Modern Component Architecture
- React.memo, useMemo, And useCallback: Optimization Costs — React 19 & Modern Component Architecture
- The React Compiler: Automated Memoization Under The Hood — React 19 & Modern Component Architecture