Skip to content

React DevTools

In one line

React DevTools browser extension lets you inspect component hierarchies, hooks state, and profile renders.

In simple words

React DevTools is a browser extension (Chrome, Firefox, Edge) and standalone app for debugging React apps. It provides:

  1. Components tab — inspect the component tree, view props, state, hooks
  2. Profiler tab — record renders, see flamechart, identify slow components
  3. State editing — modify state/props live in the browser
  4. Highlight updates — see which components re-render

Install from the browser extension store. Open with the Components and Profiler tabs in devtools. Essential for debugging hooks, understanding re-renders, and optimizing performance.

Also works with React Native via the standalone react-devtools npm package.

Example

jsx
// No code needed — DevTools is a browser extension
// Install: Chrome Web Store or Firefox Add-ons

// In your app, just open browser DevTools (F12)
// You'll see "Components" and "Profiler" tabs

// Profiler usage:
// 1. Click "Record" in Profiler tab
// 2. Interact with your app
// 3. Click "Stop"
// 4. See flamechart of every render
// 5. Identify slow components

// Components tab:
// - Click any component to see props, state, hooks
// - Edit state live to test different scenarios

React DevTools adds Components and Profiler tabs to browser devtools. Use it to inspect state, debug hooks, and profile performance.

Common confusions

  • Confused with: browser devtools

    The difference: Browser devtools (Elements, Console, Network) work on the DOM and JS runtime. React DevTools adds React-specific tabs (Components, Profiler) that show the component tree, hooks, and render performance — things browser devtools can't show.

Related terms

Related Resources

Related Lessons

Decode error messages

Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.

View errors

← Back to glossary