
Hi Dev,
To Install React.js on your Windows system, follow these steps. There are two Methods to Install react.js
In our blog, we clearly explained two ways to setup React.js: First, the modern and lightweight option—Vite.
Second, the traditional but now considered deprecated way—Create React App (CRA)—
Method – 1
Install Node.js and npm
Download Node.js official Node.js website
Install Node.js
Verify Installation
- Open Command Prompt or PowerShell.
- Check Node.js version:
node -v
npm -v
Create a New React Application( Using Vite(Recommended))
Create a React App with Vite
npm create vite@latest my-app -- --template react
Navigate to the Project Directory
cd my-app
my-app (Project Name)
Install Dependencies
npm install
Start the Development Server
npm run dev
Method – 2
Install Node.js and npm
Download Node.js official Node.js website
Install Node.js
Verify Installation
- Open Command Prompt or PowerShell.
- Check Node.js version:
node -v
npm -v
Create a New React Application( Using Create React App)
Create a React App:
npx create-react-app my-app
Navigate to the Project Directory
cd my-app
my-app (Project Name)
Start the Development Server:
npm start
I hope it will assist you…