What is this blog about
In this blog, I am going to tell you how we can host a react-js web app on GitHub Pages
Prerequisite
The ReactJS app should have a GitHub repository
The GitHub repositories visibility should be public
You should know the basics of git
Steps By Step Instruction
Add a
remote
that points to the GitHub repositoryInstall the GH-Pages package inside the react app
Add
homepage
field to thepackage.json
fileAdd
predeploy
anddeploy
scripts to the package.json scripts section
In my case, it will be
Run the deploy command in terminal
Publishing the newly deployed branch -
gh-pages
Top comments (0)