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
remotethat points to the GitHub repositoryInstall the GH-Pages package inside the react app
Add
homepagefield to thepackage.jsonfileAdd
predeployanddeployscripts 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)