Identifying Heavy Renders with Profiler
You'll learn how to use React DevTools Profiler to find components that take too long to render and block your UI.
What the Profiler Shows You
React DevTools includes a Profiler tab that records your app's rendering activity and shows you exactly which components took the longest to render. Think of it like a performance camera—you hit record, interact with your app, then review the footage to see where the slowdowns happened.
The Profiler measures render duration in milliseconds and color-codes components: gray means fast, yellow-to-red means slow. Components that take a long time to render can block the main thread, preventing user interactions from feeling responsive—even with concurrent features enabled.
How to Use It
- Open React DevTools and click the Profiler tab
- Click the record button (blue circle)
- Interact with your app (type in an input, click a button, scroll)
- Stop recording
- Review the flamegraph—tall yellow/red bars indicate heavy renders
The Profiler shows you:
- Which component rendered slowly
- How long it took (in ms)
- Why it rendered (props change, state change, parent render)
What to Look For
Components that consistently take >16ms risk causing frame drops. Those taking >50ms will feel noticeably sluggish. Once you identify these "expensive" components, you can optimize them with memo, useMemo, or by splitting them into smaller pieces.
Key Takeaway: The React DevTools Profiler reveals which components are rendering slowly, giving you concrete data to guide your optimization efforts—no guessing required.