React DevTools Standalone

7.0.1 · active · verified Sun Apr 19

The `react-devtools` package provides a standalone desktop application for debugging React applications that operate outside of conventional browser environments, such as React Native mobile apps, embedded webviews, or when debugging within browsers like Safari that lack direct extension support. This tool allows developers to inspect component hierarchies, monitor prop and state changes, and analyze rendering performance for any React-based UI. The current stable version for the standalone DevTools is 7.0.1, although related React ecosystem packages like `eslint-plugin-react-hooks` and the core React library (v19.x) receive more frequent updates. Its key differentiator is offering a consistent, dedicated debugging experience across various non-browser platforms where traditional browser DevTools extensions are not applicable or insufficient, connecting to the target application via a local server.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates global installation, launching the standalone DevTools app, and setting up client connections for React Native and web-based applications.

npm install -g react-devtools
react-devtools

// For React Native (0.43+) debugging, if not using a local simulator, 
// ensure port forwarding from device to host:
adb reverse tcp:8097 tcp:8097

// For web/iframe debugging, add this as the very first script in your HTML <head>:
// <script src="http://localhost:8097"></script>
// (Remember to remove this line for production builds!)

// Alternatively, if react-devtools is a project dependency:
npm install --save-dev react-devtools
npx react-devtools &
// In your application's main entry file (e.g., src/index.js), add as the first line:
// import 'react-devtools';
// (Also remove this import for production builds!)

view raw JSON →