@textio/react-devtools-core

    3.4.6 • Public • Published

    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').connectToDevTools(options)

    This is similar to require('react-devtools') in another package but providing more control.
    Unlike require('react-devtools'), it doesn't connect immediately, but exports a function.

    Run connectToDevTools() in the same context as React to set up a connection to DevTools.
    Make sure this runs before any react, react-dom, or react-native imports.

    The options object may contain:

    • host (string), defaults to 'localhost'.
    • port (number), defaults to 8097.
    • resolveRNStyle (function), used by RN and null by default.

    None of the options are required.

    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 can check the Electron shell in react-devtools package for a complete integration example.

    Keywords

    none

    Install

    npm i @textio/react-devtools-core

    DownloadsWeekly Downloads

    2

    Version

    3.4.6

    License

    BSD-3-Clause

    Unpacked Size

    6.27 MB

    Total Files

    8

    Last publish

    Collaborators

    • ceara
    • dustin-textio
    • yixiang
    • caidin
    • textio-greg
    • brad2
    • jsikos
    • ryanjsloan
    • textio-circle
    • daviddav
    • meghan_textio
    • jensen_textio
    • max-winderbaum
    • bobby_textio
    • chrisz_textio
    • adamsanderson-at-textio
    • dawnwright
    • cass.textio
    • oliviagunton
    • oriontextio
    • dani.textio
    • mattiejean
    • natpeterson
    • tomcarmony
    • javellar
    • jordanah
    • awtam
    • alexs_textio