Answers for ""react deploy to github""

0

"react deploy to github"

npm i gh-pages --save-dev
//add this in your package.json file
"homepage": "https://yourusername.github.io/reponame"
//add this in script section 
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
npm run deploy
Posted by: Guest on April-15-2022

Browse Popular Code Answers by Language