Deploy your React App to GitHub pages

Deploy your React App to GitHub pages
  1. First You have to create your React Application.
npx create-react-app gh-pages-react-app
git init
git remote add origin https://github.com/{user-name}/{repo-name}.git
git add .git commit -m “Your commit message”git push -u origin master
npm install gh-pages — save-dev
npm run deploy

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Yohan Malshika

Yohan Malshika

Undergraduate @ SUSL | Software Engineer