1. Node.js

JavaScript used to only run in the browser. Node.js lets it run on your machine. React needs it to build and run your project.

🧩 How?

Install from nodejs.org (download LTS).

Verify:

bash

node -v
npm -v

Both print a version number? You're ready.

📌 Summary

Task Command
Check Node version node -v
Check npm version npm -v
Where to download nodejs.org (LTS)

2. Vite

Vite creates your React project, runs a local server, and refreshes the browser instantly when you change code. Bundling, serving, reloading: one tool.

🧩 How?

Create a project:

bash

npm create vite@latest

Three questions:

  1. Project name → type your name
  2. Framework → select React