React6 min read

React Get Started

Set up React and create your first app in minutes. Step-by-step guide for beginners.

Sarah Johnson
December 20, 2025
0.0k0

Create your first React app in minutes!

Install Required Tools

1. **Node.js** - Download from nodejs.org 2. **VS Code** - Code editor

Create App

```bash npx create-react-app my-app cd my-app npm start ```

Browser opens at http://localhost:3000

File Structure

``` my-app/ src/App.js ← Your code here src/index.js ← Entry point public/ ← Static files ```

First Change

Edit **src/App.js**:

```javascript function App() { return ( <div> <h1>My First React App</h1> <p>Hello World!</p> </div> ); }

export default App; ```

Save and see changes automatically!

Quick Fixes

- **"npx not found"** → Install Node.js - **Port 3000 busy** → Use port 3001 - **Stop app** → Ctrl + C

> Next: Learn JSX syntax!

#React#Setup#Beginner