This repositry is a boilerplate for Electron and React. It is a great starting point for any electron application using react. Reap all the benefits of electron and react together with no hassle of setting up the base enviorment.
Install packages via npm or yarn, yarn is recommended.
yarn
Start the electron application.
yarn electron:serve
Build the electron application for the local system.
yarn electron:build
Electron-builder is a great alternative to build for all systems without changing "package.json".
In "public/main.js" change win.loadURL(<URL_HERE>) url to the website you want to render. You can simply replace this with a site of choice or develop a react site, host it, and render it as an app with electron.
Gitignore is set up to ignore both React and Electron files.