Skip to content

Instantly share code, notes, and snippets.

View Peeyusj's full-sized avatar
😿

Piyush Rai Peeyusj

😿
View GitHub Profile
@Peeyusj
Peeyusj / Deploy React app on Github page
Created March 15, 2023 06:18 — forked from Anupamit/DeployReactAppOnGithubPage.md
Deploy React app on Github page
1. npx create-react-app newapp
2. open pakeage json
3. npm install gh-pages --save-dev
4. Add homepage https://anupamit.github.io/
5. Add in script
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
6. git init
7. git remote add origin https://github.com/Anupamit/anupamit.github.io.git
8. npm run build