I deployed react-app to GitHub, and when I open it, it shows readme page
I followed these commands
git init
git add .
git commit -m 'upload'
git branch -M main
git remote add origin https://github.com/charyyev2000/React-Quiz-App.git
git push -u origin main
I added the homepage to my package.json
CodePudding user response:
i will list down the steps for deployment :
1 npm i gh-pages
inside your root dir
2 add this to your package.json
"scripts": {
//...
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
}
3 then run this cmd
npm run deploy