Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 380 Bytes

README.md

File metadata and controls

27 lines (14 loc) · 380 Bytes

How To Deploy React App

git inint

git status

git add .

git commit -m "initial commit"

git branch -M 'main

git remote add origin "URL"

git push -u origin 'main'

npm install gh-pages --save-dev

In package.json add:

  • "homepage" : "https://username.github.io/app-name"

  • "predeploy":"npm run build"

  • "deploy":"gh-pages -d build"

npm run deploy