hosting react on github pages code example
Example 1: how to install gh-pages
npm install gh-pages --save-dev
Example 2: create react app github repo
$ git remote add origin https://github.com/gitname/react-gh-pages.git
npm install gh-pages --save-dev
$ git remote add origin https://github.com/gitname/react-gh-pages.git