DEV Community

Gaius Nandur Isa'ac
Gaius Nandur Isa'ac

Posted on

How To install React and create your First app

To install React and create your first app, you can follow these steps:

1 Install Node.js and npm (Node Package Manager) on your computer. You can download and install the latest version of Node.js from the official website: https://nodejs.org/en/download/.

2 Once you have installed Node.js, open your terminal or command prompt and run the following command to install the create-react-app package globally:

npm install -g create-react-app
Enter fullscreen mode Exit fullscreen mode

3 After installing create-react-app, you can create a new React app by running the following command:

create-react-app my-app
Enter fullscreen mode Exit fullscreen mode

Replace "my-app" with the name you want to give your app. This will create a new React app in a folder with the same name.

4 Once the app is created, you can navigate to the app's directory by running the following command:

cd my-app
Enter fullscreen mode Exit fullscreen mode

5 Now you can start the development server by running the following command:

npm start
Enter fullscreen mode Exit fullscreen mode

This will launch a development server and open your app in the browser. You can start editing the code in the "src" folder and see the changes in real-time.

Congratulations, you have successfully installed React and created your first app!

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay