Follow these instructinos to run your React app in github pages.
Assuming already have a React application add gh-pages to your app:
1. $ npm install gh-pages --save-dev
2. In package.json confirm gh-pages dependicies are installed
3. Add in package.json a homepage property after the "name" property
4. Under scripts add predeploy and deploy commands
5. CREATE A BUILD$ npm run deploy
You should see a "Plublished" Message when successfully completed:
> react-app-with-workflow@0.1.0 deploy
> gh-pages -d build
Published
6. Go to your Github profile settings > Pages
Done