Home > Blockchain >  shows readme page after deploying react-app
shows readme page after deploying react-app

Time:10-02

I deployed react-app to GitHub, and when I open it, it shows readme page

enter image description here

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 enter image description here

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
  • Related