React Deployment on Github Page

Note:- Before going to deploy a react app on Github Pages you should know github pages not support packages like react-router, so you can deploy simple static site on github pages.
1. Add homepage to package.json file.
"homepage": "https://your_github_username.github.io/repo_name",
2. Install gh-pages .
npm install --save gh-pages

OR

yarn add gh-pages
3. Add deploy toscripts inpackage.json .
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
4. Deploy the site by running npm run deploy .
npm run deploy
❤️ Thank You 🙏
Hello