Back to results for “Debugging”
React › React DevTools & Debugging

What is React DevTools and how do you install it?

Beginner

Answer

React DevTools is a free browser extension available for Chrome and Firefox that adds two new tabs to your browser's developer tools, letting you inspect the component tree, view current props and state, and see exactly why a component re rendered.
// Install from the Chrome Web Store or Firefox Add-ons page
// Search for React Developer Tools
// Once installed, open browser DevTools and look for the new Components and Profiler tabs
Real-world example A developer debugging why a button shows the wrong text opens the Components tab in React DevTools, clicks on the button component, and immediately sees the exact prop values it currently received.

Common follow-ups: Does React DevTools work on a production build, or only in development?;What is the difference between the Components tab and the Profiler tab?