React Installation Guide
React Installation Guide
js and npm
React requires Node.js and npm (Node Package Manager) to run.
1.1 Download & Install Node.js
1. Go to the official Node.js website.
2. Download the LTS (Long-Term Support) version for Windows.
3. Run the downloaded .msi file and follow the installation steps.
4. Ensure that you check the box "Add to PATH" during installation.
1.2 Verify Node.js and npm Installation
After installation, open Command Prompt (cmd) or PowerShell and type:
node -v
✅ If Node.js is installed, it will display a version number like v18.x.x.
Then, check npm (comes with Node.js):
npm -v
✅ If npm is installed, it will display a version number like 9.x.x.
function App() {
return (
<div>
<h1>Hello, World!</h1>
<p>Welcome to my first React App.</p>
</div>
);
}