Skip to content

React on Github Pages #60881

Answered by ArdeshirV
electronicjob asked this question in Pages
Jul 14, 2023 · 5 comments · 10 replies
Discussion options

You must be logged in to vote

To use React on GitHub Pages, you'll need to follow these steps:

Create a new repository on GitHub: Go to GitHub and create a new repository for your React project.

Set up your local development environment: Make sure you have Node.js and npm (Node Package Manager) installed on your computer. You can download them from the official Node.js website if you don't have them already.

Create a new React app: Open your terminal or command prompt and navigate to the directory where you want to create your React app. Run the following command to create a new React app:

npx create-react-app my-app
This will create a new directory called my-app with a basic React project structure.

Build your React …

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@electronicjob
Comment options

@ThinkOpenly
Comment options

@DannyMancheno
Comment options

@albertomtferreira
Comment options

Answer selected by electronicjob
Comment options

You must be logged in to vote
1 reply
@BashkirovN
Comment options

Comment options

You must be logged in to vote
3 replies
@BashkirovN
Comment options

@leeringrose
Comment options

@dragontheory
Comment options

Comment options

You must be logged in to vote
2 replies
@ThinkOpenly
Comment options

@leeringrose
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question