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
- Host: GitHub
- URL: https://github.com/dimitarnestorov/react-devtools-electron
- Owner: DimitarNestorov
- License: mit
- Created: 2019-01-27T16:29:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T05:18:23.000Z (over 3 years ago)
- Last Synced: 2024-04-25T16:02:56.030Z (about 2 years ago)
- Topics: devtools-extension, electron, react
- Language: TypeScript
- Homepage: https://npm.im/react-devtools-electron
- Size: 958 KB
- Stars: 7
- Watchers: 3
- Forks: 4
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-devtools-electron
[](https://www.npmjs.com/package/react-devtools-electron)
[](http://makeapullrequest.com)
React Developer Tools for Electron

## 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).