Getting Started with React in VS Code
This beginner-friendly guide walks you through setting up your React development environment
using Visual Studio Code (VS Code).
1. Install [Link]
React apps require [Link] and npm. Download and install the LTS version from [Link]
After installing, check your terminal:
node -v
npm -v
2. Open VS Code and Terminal
Open a folder in VS Code where you want to build your app. Use the shortcut Ctrl + ` to open the
terminal or go to Terminal > New Terminal.
3. Create a New React App
In the terminal, run:
npx create-react-app my-app
This sets up everything you need in a new folder called 'my-app'.
4. Run the App
Navigate into your project and start the development server:
cd my-app
npm start
Your browser will open showing the default React app.
5. Start Coding
Open the file 'src/[Link]' and start editing your code. The app will auto-refresh with your changes.
Created on April 30, 2025