Run the following commands:
git clone git@github.com:tjbo/electron-rescript-setup.git
cd electron-rescript-setup && yarn
In one terminal window run: yarn run rescript
In another terminal window run: yarn run electron
Check out How to Setup Electron With ReScript, for more indepth instructions.