Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-devtools

Package Overview
Dependencies
Maintainers
5
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-devtools

Use react-devtools outside of the browser

  • 2.0.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
84K
decreased by-20.71%
Maintainers
5
Weekly downloads
 
Created
Source

react-devtools

Why use this?

If you need to debug a React page somewhere other than Chrome on desktop (a mobile browser, an embedded webview, safari, etc), the react-devtools package is for you! It is also useful if your app is inside an iframe.

It works both with React DOM and React Native.

Usage

Install the package:

npm install --save-dev react-devtools

Add a script to your package.json:

  "scripts": {
    // ...
    "devtools": "react-devtools"
  }

Now run npm run devtools to launch the standalone DevTools app.

The final step depends on your rendering target.

React Native

You don't need to do anything else. Just make sure your app is running in foreground in the simulator, and DevTools will connect to it.

React DOM

Add import 'react-devtools' to the top of your entry file.

import 'react-devtools'; // Put it first!
import ReactDOM from 'react-dom';

Make sure that your react-devtools import comes before your react-dom import.
And don't forget to remove the import before shipping to production!

Advanced

By default DevTools listen to port 8097 on localhost.
If you need to customize host, port, or other settings, see the react-devtools-core package instead.

Developing

  • Run npm run backend:watch and npm run standalone:watch in ../react-devtools-core
  • Run npm start in this folder
  • Refresh the app after it has recompiled on change

FAQs

Package last updated on 16 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc