JSPM

  • Created
  • Published
  • Downloads 4129312
  • Score
    100M100P100Q193280F
  • License BSD-3-Clause

Use react-devtools outside of the browser

Package Exports

  • react-devtools-core
  • react-devtools-core/standalone

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-devtools-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-devtools-core

A standalone React DevTools implementation.

This is a low-level package. If you're looking for the Electron app you can run, use react-devtools package instead.

Exports

require('react-devtools-core')

The code that needs to run in the same context as React, and initialized before React. It will connect to the DevTools.

require('react-devtools-core/standalone')

Lets you render DevTools into a DOM node and have it listen to connections.

For example:

require('react-devtools-core/standalone')
  .setContentDOMNode(document.getElementById('container'))
  .startServer(port);

You check the Electron shell in packages/react-devtools for a complete integration example.