How to deploy a react application to GitHub Pages

preview_player
Показать описание
How to deploy a react application to GitHub Pages. In this tutorial I show you how to find the documentation for deploying react applications to GitHub Pages. How to navigate the documentation. We cover everything from creating an application with npx create-react-app, making a GitHub repository and ultimately deploying our application to GitHub Pages.

If you like this video please subscribe like and share!

Steps 1

Step 2 A
npm Install gh-pages

Step 2 B
"predeploy": "npm run build",
"deploy": "gh-pages -d build",

Step 3
Deploy the application
npm run deploy

Links

React

npm GitHub pages

My GitHub

Example of deployed app

ReactJS
React
Deploy to GitHub Pages
Deployment of reactJS to GitHub pages
npm gh-pages
Рекомендации по теме
Комментарии
Автор

When I am editing the code in my master branch, it is not updating in on the hosted website, what should I do?

shivangdubey
Автор

When I do the pushing command he pushes another different file to my repository I try a different account and I uninstall git and GitHub, and he is still not working I hope you can help me

BNALLAL
Автор

Hey Adam! Thanks for this, I asked a question yesterday and later deleted it coz it was a dumb mistake on my part! Thanks for that answer regardless!
I have a new question, when i want to update my app, do i just push the changes to the repo, or do i need to "npm run deploy" again? What are the steps exactly?

jammy
welcome to shbcf.ru