How to Install React JS | Beginner Tutorial

Опубликовано: 02 Май 2026
на канале: SpanCoders | Simplifying Tech, One Line at a Time
60
2

How to Install React JS | Beginner Tutorial

💻 How to Install React JS | Beginner Tutorial (CRA and Vite)
Welcome to SpanCoders – Tech made simple in seconds! 🚀

In this video, we’ll learn How to Install React JS step by step using Create React App (CRA) and Vite.
Agar aap React.js seekh rahe ho ya web development start kar rahe ho, ye video aapke liye perfect hai!
By the end, you’ll know how to create your first React app easily with both methods.

⚙️ What You’ll Learn

✅ What is React JS
✅ How to install Node.js (React ke liye zaroori hai)
✅ How to create a React App using Create React App (CRA)
✅ How to create a React App using Vite (fastest modern setup)
✅ Folder structure overview
✅ How to run your first React project
✅ Difference between CRA and Vite setup

🧠 What is React JS?

React.js ek JavaScript library hai jo Facebook ne banayi hai for building interactive UI (User Interfaces).
Ye component-based approach use karta hai taaki aap apna UI reusable aur modular bana sako.

🧰 1️⃣ Setup Using Create React App (CRA)

Step 1: Install Node.js from https://nodejs.org

Check version:

node -v
npm -v


Step 2: Create a new React project:

npx create-react-app myapp


Step 3: Go inside project folder:

cd myapp


Step 4: Run your app:

npm start


Your app will run on 👉 http://localhost:3000

⚡ 2️⃣ Setup Using Vite (Faster Alternative)

Step 1: Run this command:

npm create vite@latest myapp


Step 2: Choose → React or React + TypeScript
Step 3: Go inside the folder:

cd myapp


Step 4: Install dependencies:

npm install


Step 5: Run your app:

npm run dev


Your app will run on 👉 http://localhost:5173

⚖️ CRA vs Vite – Difference
Feature Create React App Vite
Speed Slower Super Fast 🚀
Build Size Larger Smaller
Configuration Pre-configured Customizable
Ideal For Beginners Modern projects

👉 Pro Tip: If you’re starting new, go with Vite — it’s lightweight, fast, and modern.

💡 Common Errors and Fixes

❌ “npm not recognized” → Install Node.js again
❌ Blank screen issue → Check your npm start or npm run dev port
❌ Permission error → Run terminal as Administrator (Windows)
❌ React not recognized → Ensure proper folder setup

🎯 Why This Video is Important

If you’re a beginner React developer, knowing both CRA and Vite setup helps you understand how modern React projects start.
With this knowledge, you can build any project easily — from small apps to production-level websites.

📚 Timestamps

0:00 – Intro
0:10 – What is React JS
0:32 – Setup using CRA
1:08 – Setup using Vite
2:24– CRA vs Vite difference
3:35 – Final tips and outro

🚀 Next Videos to Watch

🔹 React Components Explained in 60 Seconds
🔹 React Props & State Explained
🔹 React useEffect Hook in Hindi
🔹 JavaScript Closures Explained

💬 About SpanCoders

We create Tech + Fun Shorts and Tutorials for developers in Hinglish.
Topics include React JS, JavaScript, Web Development, and Coding Tips — simplified for everyone!

🎥 Subscribe for:
✅ React JS Shorts & Tutorials
✅ JavaScript Explained Simply
✅ Fun Facts + Knowledge Videos
✅ Daily Dev Motivation

🏷️ Tags / Hashtags

#reactjs #reactinstallation #reacttutorial #javascript #frontenddevelopment #webdevelopment #reactbeginner #reactvite #createReactApp #reactsetup #reactjs2025 #reactforbeginners #spancoders #shorts #codingtutorial #webdev #learnreact

💬 Follow SpanCoders

📺 YouTube –    / @spancoders  
📸 Instagram –   / spancoders  
📘 Facebook –   / spancoders  
📢 Telegram – https://t.me/spancoders

🔥 Subscribe to SpanCoders – “Tech made simple in seconds!” 🔔
👉 Learn React, JavaScript & Web Dev the easy way!

how to install react js, react js tutorial beginner to advanced, how to install react js in hindi, react js beginner tutorial, how to install react js in windows 11 in hindi, react js tutorial for beginners, how to install react, reactjs beginner tutorial, react js project tutorial for beginners, how to install react 19 in windows 11, reactjs tutorial for beginners, react tutorial for beginners, how to start react js in visual studio code, how to start a project in react js, react.js beginner tutorial

#React #ReactJS #ReactKeys #ReactTutorial #WebDevelopment #JavaScript #FrontendDev #Coding #Programming #SoftwareDevelopment #LearnReact #ImportanceOfKeys #ReactBestPractices #TechEducation #DeveloperTips #CodingLife #JavaScriptFrameworks #UIDevelopment #ReactCommunity