Course contentsShow
← React
Lesson 73 of 2,3962. Setup and Modern ToolingFree lesson

DevTools Settings and Display Options

Configure component badges, highlight updates on re-render, and toggle filtered components for focused debugging.

DevTools Settings and Display Options

What you'll learn: How to customize React DevTools to show exactly the information you need while filtering out the noise.

Making DevTools Work for You

React DevTools isn't one-size-fits-all. You can configure how components appear and what updates are highlighted, making debugging faster and less cluttered. Think of it like adjusting your car's mirrors before driving—a little setup makes the journey much smoother.

Key Settings to Know

Component Badges

Component badges display extra information directly in the component tree (like hooks count or memo status). In DevTools settings (gear icon), you can toggle these on/off to see more or less detail at a glance.

Highlight Updates on Re-render

This is a visual debugging superpower. When enabled, React DevTools draws colored borders around components as they re-render. Blue flashes mean a component updated. This helps you spot unnecessary re-renders instantly—like watching traffic lights show you where the bottleneck is.

To enable it: Look for the "Highlight updates when components render" option in the DevTools settings panel.

Filtered Components

By default, DevTools filters out certain components (like those from libraries) to reduce clutter. You can customize which components to hide or show using filter patterns. This lets you focus on your code without scrolling through dozens of third-party wrapper components.

Access filters through the settings menu—you can add patterns like ^Connect to hide Redux connector components, for example.

When to Use These

  • Turn on highlight updates when diagnosing performance issues
  • Use filters when your component tree is overwhelming
  • Adjust badges based on whether you're debugging hooks, context, or memoization

Key Takeaway: Configuring DevTools settings—especially highlight updates and component filters—transforms it from a simple inspector into a precision debugging instrument tailored to your workflow.