How to Install React.js on Windows: A Complete Guide
Jun 03, 2026 3 Min Read 41060 Views
(Last Updated)
If you want to start building modern web applications, installing React.js on your system is the first step. React.js makes it easy to create fast and interactive user interfaces using reusable components. In this blog, you will learn how to install React.js on Windows in a simple step-by-step way.
By the end of this guide, you will set up Node.js, use Vite, and successfully run your first React.js application. This blog will help you understand the basic setup and get started with React.js development quickly.
Table of contents
- TL;DR Summary
- What is React.js?
- How to Install React.js on Windows
- Step 1: Install Node.js
- Step 2: Open Terminal in Your Project Folder
- Step 3: Check Node.js and npm Installation
- Step 4: Create a New Vite React App
- Step 5: Enter Your Project Details
- Step 6: Move Inside the Project Folder
- Step 7: Install Project Dependencies
- Step 8: Start the Vite React Application
- Step 9: Explore the Vite Documentation
- Conclusion
- FAQs
- Why do we need Node.js to install React.js?
- What is the use of npm in React.js setup?
- Why do we use Vite for React.js setup?
- What happens after running npm install?
- Why do we use npm run dev?
- Can we change the project name during setup?
TL;DR Summary
• This blog helps you install a React.js project on Windows in a simple way, even if you are a beginner.
• It gives you a clear step-by-step flow to avoid confusion during installation.
• You will also quickly understand the important features of React.js in a simple way.
What is React.js?
React.js is a popular open-source JavaScript library developed by Facebook, primarily used for building user interfaces, especially for single-page applications. Its main focus is on rendering UI components efficiently and updating them in response to data changes, making the development process smoother for complex and interactive web applications.
Key features of React.js include:
- Component-Based Architecture: React breaks down the UI into reusable components, each encapsulating its own logic and rendering, making the development and maintenance of complex applications easier.
- Virtual DOM: React uses a virtual representation of the actual DOM (Document Object Model) to optimize updates and minimize direct manipulation of the browser’s DOM. This results in faster rendering and improved performance.
- Declarative Programming: React allows developers to describe how the UI should look at any given time. When data changes, React efficiently updates and re-renders the components.
- Unidirectional Data Flow: React follows a one-way data flow, making it easier to track data changes, which helps with debugging and ensures predictable behavior.
- JSX Syntax: React uses a syntax extension called JSX (JavaScript XML) that allows developers to write HTML-like code directly within JavaScript. This makes the code more readable and easier to understand.
React is widely used for building web applications due to its flexibility, scalability, and strong community support.
Also Explore: Top Technologies to Learn for a JavaScript Backend Developer
After understanding the fundamental concepts of React.js and how it empowers developers to build dynamic user interfaces, let’s move forward with a step-by-step guide on how to install React.js on Windows.
• The old method (Create React App) is now deprecated
• We will use the latest method to install React.js
• In this blog we will use the Vite build tool
• Vite is faster and more modern for setup
Explore HCL GUVI’s free React.js resources to learn faster and start building real-world web applications with ease: React eBook
How to Install React.js on Windows
These are simple, beginner-friendly steps to install Node.js, set up Vite, create a React project, install dependencies, and run your first React application on Windows without confusion:
Step 1: Install Node.js
- Search for Node.js download on Google.
- Open the official Node.js website.
- Download the LTS version, as it is the stable release recommended for most users.
- Once the file is downloaded, open the installer.
- Click “Next” and complete the installation using the default settings.
- Node.js is required because it installs npm, which helps us create and manage a Vite React application.
Step 2: Open Terminal in Your Project Folder
- Go to the location where you want to create your React project.
- Right-click inside the folder.
- Click on “Open in Terminal” or “Open PowerShell Window Here”.
- This will open the terminal directly in that folder, making the setup process easier.
Also Read: How to Render an Array of Objects in React? [in 3 easy steps]
Step 3: Check Node.js and npm Installation
- In the terminal, type the following commands one by one:
node -v
npm -v
- If both commands show version numbers, it means Node.js and npm are installed correctly.
- These two tools are required before creating a Vite React application.
Also Read: Use ReactJS to Fetch and Display Data from API – 5 Simple Steps
Step 4: Create a New Vite React App
- In the terminal, run the following command:
npm create vite@latest
- Press Enter when asked to continue.
- Now Vite will ask a few questions.
Also Read: Top ReactJS Interview Questions and Answers Of 2026
Step 5: Enter Your Project Details
- First, enter your project name.
- Example:
demo
- Next, select the framework.
- Choose React using the arrow keys and press Enter.
- After that, select the variant.
- Choose JavaScript if you want to create the project using JavaScript.
- You can also choose TypeScript if required.
Step 6: Move Inside the Project Folder
- After the setup is completed, Vite will show some commands.
- Move inside your project folder using:
cd demo
- Replace “demo” with your project name if it is different.
Step 7: Install Project Dependencies
- Run the following command:
npm install
- You can also use the short command:
npm i
- This command installs all the required libraries and packages for your React application.
Step 8: Start the Vite React Application
- Run the following command:
npm run dev
- After running the command, Vite will generate a localhost URL.
- Press Ctrl + Click on the URL to open it in your browser.
- You will now see your Vite React application running successfully.
Step 9: Explore the Vite Documentation
- Inside the default application page, you will see the Vite logo.
- Clicking the logo will open the official Vite documentation.
- You can use the documentation to learn more about Vite features and project setup.
Ready to elevate your web development skills? Join HCL GUVI’s React.js course and transform your expertise into mastery. Enroll now!
Conclusion
Setting up a React development environment with Node.js and Vite/Create React App is the first step to building modern web apps. It gives you all the essential tools to create fast, scalable, and interactive applications, work with reusable components, and manage state efficiently. This setup is the base for starting your journey into the React ecosystem and building real-world projects.
Must Explore: 10 Best React Project Ideas for Developers [with Source Code]
FAQs
Why do we need Node.js to install React.js?
Node.js provides npm, which is required to install and manage React.js packages.
What is the use of npm in React.js setup?
npm helps in installing all required libraries and dependencies for the project.
Why do we use Vite for React.js setup?
Vite gives a faster development environment and quick project startup.
What happens after running npm install?
It downloads and sets up all required project dependencies.
Why do we use npm run dev?
It starts the React development server and opens the project in the browser.
Can we change the project name during setup?
The project name can be set while creating the Vite React app.



nice. Very helpful. thanks
Insightful and very detail approach.