Answers for "Deploying a React App* to GitHub Pages"

8

Deploying a React App* to GitHub Pages

npm install gh-pages --save-dev
package.json
//...
"homepage": "http://gitname.github.io/react-gh-pages"
//...
"scripts": {
  //...
  "predeploy": "npm run build",
  "deploy": "gh-pages -d build"
}
git init
git remote add origin https://github.com/gitname/react-gh-pages.git
npm run deploy
git add .
git commit -m "Create a React app and publish it to GitHub Pages"
git push origin master
Posted by: Guest on June-21-2021
1

deploy react express to github pages

npm run deploy
Posted by: Guest on January-03-2021
-2

deploy react app to github

echo "# instagram-clone" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/CoderJakaria/instagram-clone.git
git push -u origin main
Posted by: Guest on April-24-2021

Code answers related to "Deploying a React App* to GitHub Pages"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language