Electron - How to add react dev tool

后端 未结 3 1774
眼角桃花
眼角桃花 2021-01-14 01:01

What is the easy way to add react dev tool to electron window? I try add the extension hash

BrowserWindow.addDevToolsExtension(\'path/to/extension/ade2343nd23

3条回答
  •  遥遥无期
    2021-01-14 01:15

    addDevToolsExtension is not an instance method, so you need to call BrowserWindow.addDevToolsExtension('path/to/extension').

提交回复
热议问题