Since React.js application is a JavaScript application, we can deploy it on GitHub Pages.
- Create local
gh-pages
branch:git checkout -b gh-pages
- Create remote
gh-pages
branch:git push origin gh-pages
- Push changes in
build
directory to remotegh-pages
branch:git subtree push --prefix build origin gh-pages