The Beginner's Guide to How to Deploy React App to GitHub Pages | GitHub Pages | React | Ganesh Dev

Опубликовано: 30 Июль 2026
на канале: Ganesh JDev
119
7

In this little video, we'll show you how to launch our React.js app for free using the fantastic GitHub Pages tool. Later on, you can even add your own domain! Other static websites could benefit from this strategy as well. I hope you like and benefit from the video.


----------------------------------------------------------
⌨️ Commands Used
----------------------------------------------------------

Cmd
▶️ npm install gh-pages --save-dev


Package.json
▶️ "homepage":"http:// [USER-NAME] .github.io/ [REPO-NAME]"
▶️ "predeploy":"npm run build",
▶️ "deploy":"gh-pages -d build"

Cmd
▶️ git init
▶️ git add .
▶️ git commit -m "commit-msg"
▶️ git remote add origin [REPO-LINK]
▶️ npm run deploy


ABOUT OUR CHANNEL
Our channel is about Coding and Programming. We cover lots of cool stuff such as Android Development and Web Development
Check out our channel here:
   / ganeshjdev  
Don't forget to subscribe!

FIND US AT
https://mbganesh.github.io/my_profile/

GET IN TOUCH
Contact us at [email protected]


----------------------------------------------------------
🔗 My Links
----------------------------------------------------------
GitHub: https://github.com/mbganesh
Instagram:   / mb_ga.ne.sh_dev  
LinkedIn:   / ganesh-jdev  
Personal site: https://mbganesh.github.io/my_profile/


#GitHubPages

#ReactJS

#FreeHosting