I want to show the version of Electron on my React.js web page. How can I do it?
I tried to use the ipcRender and ipcMain but I failed.
I want to show the version of Electron on my React.js web page. How can I do it?
I tried to use the ipcRender and ipcMain but I failed.
app.getVersion() Returns string - The version of the loaded application. If no version is found in the application's package.json file, the version of the current bundle or executable is returned.
This comment here explains it's usage with react.
Edit:
You can get the electron version via process.versions.electron
. It's already answered in detail here.