Create React App

React is used to build single-page applications, and allows us to create reusable UI components.

29th July 2022

Time to read: 1 min

Logo

You need to set up a React Environment on your computer.

Create a New App

npx create-react-app my-react-app

Run the React Application

Run this command to move to the my-react-app directory:

npm start

A new browser window will pop up with your newly created React App! If not, open your browser and type localhost:3000 in the address bar.

The result: screenshot myfirstreact