Course contentsShow
← React
Lesson 1462 of 2,39636. Concurrent ReactFree lesson

Identifying Heavy Renders with Profiler

Use React DevTools Profiler to measure render duration and identify components that block the main thread.

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

  1. Open React DevTools and click the Profiler tab
  2. Click the record button (blue circle)
  3. Interact with your app (type in an input, click a button, scroll)
  4. Stop recording
  5. 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.