Today, I deployed a React app to GitHub Pages. You can visit the deployed app, at https://gitname.github.io/react-gh-pages/.
This repository contains the files involved in that endeavor. Specifically, it contains the source code files (e.g. App.js
, index.js
, package.json
, and the README.md
document you're reading now) and the files that consitute a build of the app.
The source code files are stored in this repository's master
branch, while the files that constitute the build are stored in this repository's gh-pages
branch.
The remainder of this document contains a tutorial on creating a React app (using create-react-app
) and deploying that app to GitHub Pages.
- Coming soon...
I created this React app using create-react-app
. By default, apps created using create-react-app
have a README.md file that looks like this. Indeed, the README.md file you're now reading originally looked like that. I have since changed it to look the way it looks today.