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{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




Undergraduate @ SUSL | Software Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Expo Camera App and Passing an Image to a Route

Merging Custom Angular Schematics

The Ugly Side of React Hooks

Working On New Tech

Build you rails project with bootstrap 4

Action, Dispatch, and Usereducer() in React

How JavaScript Works?

Vue 3 component cheat sheet

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

More from Medium

How to deploy your React Apps on GitHub pages?

Is front-end web development easier than back-end web development?

Simple Guide to React Js Internationalization

How to easily use Bootstrap components in React app