This is an example app that show how to build electron app with create-react-app. The blog address.
# start the web dev server
$ npm start
# start electron in debug model
$ npm run electron-dev
# generate the installation package
$ npm run packager