Course Content
REACT Tutorial
About Lesson

Setting Up the Development Environment

Ready to embark on your React journey? The first step is setting up your development environment. This guide will walk you through the process, ensuring a smooth setup for your React projects.


Ensure you have the following installed:

Node.js and npm

Install the latest stable versions from the official Node.js website.

Code Editor

Choose from Visual Studio Code, Atom, or Sublime Text. Install your preferred editor.

Create a React App

Let’s dive in and create a new React app. Open your terminal and run:

npx create-react-app my-react-app

This command sets up a new React project with the necessary files and dependencies.

Navigate to Your Project

Once created, navigate to your project directory:

cd my-react-app

Run the Development Server

To see your React app in action, start the development server:

npm start

Visit http://localhost:3000 in your browser, and you should see your React app running.

Understanding Project Structure

Familiarize yourself with the project structure:


This directory contains your application’s source code, where you’ll spend most of your time writing React components.


The public directory holds static assets like HTML files or images. The index.html file is the entry point for your React app.

Installing Additional Packages

Depending on your project requirements, install additional packages:

npm install <package-name>

Include the “–save” flag to save the package as a dependency in your package.json file.