Reactron is a clean electron boileplate(or template) that uses React, Electron, Electron-Builder for rapid application development. It just a normal project bootstrapped with Create React App but runs in electron.
Don't use html5's push state(ReactRouter's BrowserRouter etc.,) because of the relative path issue.
Clone this project, edit package.json, start developing.
Run yarn dev
to start a react development server and open electron app in dev mode.
Runs the react in the development mode.
http://localhost:4000 is the url for development.
Build react project and package it using Electron Builder.
Build react project and package it into windows portable(ia32) using Electron Builder. (Dont't forget placing your icon file to build/icon.ico)
See package.json
and public/electron,js
for more details.