John M. John M. - 1 month ago 17
React JSX Question

How to make the dev tools not show up on screen by default : electron

I am using this boilerplate to create an electron-react app. The dev tools show up on the screen by default. How can I make the dev tools only appear when I ask for them and not show up on launch?

Also, there are no errors shown in the console, so the dev tools are not showing up because there's an error.

enter image description here

Answer

I think you will be able to run without devtools open if you remove this line: https://github.com/chentsulin/electron-react-boilerplate/blob/master/main.development.js#L56