{"library":"react-devtools","title":"React DevTools Standalone","description":"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.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install react-devtools"],"cli":{"name":"react-devtools","version":null}},"imports":["react-devtools","import 'react-devtools';","<script src=\"http://localhost:8097\"></script>"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install -g react-devtools\nreact-devtools\n\n// For React Native (0.43+) debugging, if not using a local simulator, \n// ensure port forwarding from device to host:\nadb reverse tcp:8097 tcp:8097\n\n// For web/iframe debugging, add this as the very first script in your HTML <head>:\n// <script src=\"http://localhost:8097\"></script>\n// (Remember to remove this line for production builds!)\n\n// Alternatively, if react-devtools is a project dependency:\nnpm install --save-dev react-devtools\nnpx react-devtools &\n// In your application's main entry file (e.g., src/index.js), add as the first line:\n// import 'react-devtools';\n// (Also remove this import for production builds!)\n","lang":"javascript","description":"Demonstrates global installation, launching the standalone DevTools app, and setting up client connections for React Native and web-based applications.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}