1 - After creating your project with create-react-app, run:
yarn add --dev electron
2 - create src/electron-start.js file and add this:
const electron = require('electron');
// Module to control application life.
const app = electron.app;
// Module to create native browser window.