What is the easy way to add react dev tool to electron window? I try add the extension hash
BrowserWindow.addDevToolsExtension('path/to/extension/ade2343nd23k234bdb').15.01
But when the extension update, I had to manually update the string in main.js. I'm looking for a better way.
Here is a Solution for Electron <= 1.2.1 version
1- In your app folder
2- Open your electron app, click on (view/toggle developer tools). In the console tab insert the following code and hit enter:
3- Reload/refresh your electron app page and you'll see the react dev tools appear.
4- Done!
See screen shots bellow
You can add react devtools directly from your main.js file like this
addDevToolsExtension
is not an instance method, so you need to callBrowserWindow.addDevToolsExtension('path/to/extension')
.