React Developer Tools is a browser extension that adds Components and Profiler panels to your browser's dev tools. You use it to inspect a running React app, read and edit props and state, and spot components that render too often.
The tool works on any website built with React, and it is most useful when you inspect a project you wrote yourself. The extension reads the in-memory component tree, not the HTML, so it shows your actual React structure.
Install the browser extension
Install the extension from your browser's official store. It is available for Chrome, Firefox, and Edge.
After installation, open a page built with React and open your browser's dev tools. Two new panels appear: Components and Profiler. If they are missing, restart the browser.
To inspect your own code, first create a React app with Vite and start its dev server.
Use the Components panel
Select a component on the page with the selection arrow, or click its name in the tree. The right side shows the props and state for that component.
The tree mirrors your component structure. The state you created in your first React component appears here, and you can watch it change as you interact with the page.
Edit props and state live
Click a value in the props or state panel to edit it. React re-renders immediately, so you can test states without writing code.
For example, change a counter's state value and the page updates at once. This is a fast way to test an edge case, a loading state, or a value that is hard to reach by clicking through the app.
Use the Profiler panel
Switch to the Profiler tab and press the record button. Interact with the page, then stop recording to see a timeline of renders.
Each bar shows how long a component took to render. The Profiler is the starting point when a page feels slow, because it shows which components re-render and how often.
Install the standalone app for Safari
Safari does not use the browser extension. Install the standalone version and start it from the terminal:
npm install -g react-devtools
react-devtoolsThe tool opens a window and waits for a page to connect. Add this script tag to the head of your page so the standalone app can attach to it:
<script src="http://localhost:8097"></script>Reload the page and it appears in the standalone window.
What to learn next
With DevTools open, inspect a real project and watch state update as you click. The guide on common React setup errors helps when the panels do not appear or the project fails to start.
Rune AI
Key Insights
- Install the React Developer Tools extension for Chrome, Firefox, or Edge.
- The Components panel shows the component tree, props, and state.
- You can edit props and state live and watch the page re-render.
- The Profiler panel records renders to help find slow components.
- Safari users install the standalone react-devtools package.
Frequently Asked Questions
How do I open React Developer Tools?
Does React Developer Tools work on Safari?
Can I edit props and state with React Developer Tools?
Conclusion
React Developer Tools is the fastest way to see what your components are doing. Install the browser extension, inspect the component tree, edit props and state, and use the Profiler when a page feels slow.
More in this topic
How to Build a Dropdown Menu in React
Build a React dropdown menu with the ARIA menu button pattern. Handle open and close, keyboard arrows, and clicks outside the menu.
How to Animate React Components with Motion
Animate React components with the Motion library. Set up motion, add enter, hover, and exit animations, and respect reduced motion.
Headless UI Components Explained: Logic Without Locked Styling
Understand headless UI components and how libraries like Radix give you unstyled, accessible behavior that you style yourself.