A boilerplate to deploy react apps on heroku.
npm run dev-install
cd client
yarn build
cd ..
npm run start
After go to http://localhost:5000 your app is now served by the express.js server.
cd client
yarn start
and you can start building your app.
Remember when you have developed your react project , you simply deploy to heroku. After that heroku will install the server dependencies and runs 'heroku-postbuild' script to install the react dependencies for your app.