An open API service indexing awesome lists of open source software.

https://github.com/dimitarnestorov/react-devtools-electron

React Developer Tools for Electron
https://github.com/dimitarnestorov/react-devtools-electron

devtools-extension electron react

Last synced: over 1 year ago
JSON representation

React Developer Tools for Electron

Awesome Lists containing this project

README

          

# react-devtools-electron

[![npm version](https://img.shields.io/npm/v/react-devtools-electron.svg)](https://www.npmjs.com/package/react-devtools-electron)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)

React Developer Tools for Electron

Showcase

## Installation

```sh
npm install --save-dev react-devtools-electron
```

## Usage

Inside the main process add the following line:

```javascript
isDev && require('react-devtools-electron')
```

Or if you're using TypeScript:

```typescript
isDev && import('react-devtools-electron')
```

`isDev` represents a boolean which is true when your app is running in development mode. If you haven't defined one yourself you can use [`electron-is-dev`](https://www.npmjs.com/package/electron-is-dev).