Skip to content

How install react js project #790

Answered by Sengwamana
Uwase-Sonia asked this question in Q&A
Discussion options

You must be logged in to vote

✅ Method 1: Using Create React App (CRA)
This is the most beginner-friendly way.

  1. Install Node.js
    Make sure Node.js is installed. Run:

bash
t
node -v
npm -v
If not installed, download from: https://nodejs.org

  1. Create a React app
    bash

npx create-react-app my-app
Replace my-app with your project name.

  1. Navigate to project folder
    bash

cd my-app
4. Start the development server
bash

npm start
Your React app will open at http://localhost:3000/.

✅ Method 2: Using Vite (Faster & More Modern)
For more advanced or lightweight setups.

  1. Install via npm

npm create vite@latest my-vite-app
Follow the prompts:

Choose framework: React

Choose variant: JavaScript or TypeScript

  1. Navigate and install depe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Uwase-Sonia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants