npm install 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!
Usage
- Add
import 'react-devtools'
to the top of your entry file
import 'react-devtools'
import React, {Component} from 'react'
- Run the react-devtools standalone app.
./node_modules/.bin/react-devtools
- Profit!
Make sure that your
react-devtools
import comes before your react
, react-dom
, or react-native
imports.
Advanced
If you need to customize host, port, or other settings, see the react-devtools-core
package instead.
Developing
npm run build
npm start
npm publish