How to Install React ?

In this tutorial i’m going to learn how to install React

How to Install Create-React-App

In order to install your app, first go to your workspace (desktop or a folder) and run the following command:

Go to your visual code and open terminal there as below.

npx create-react-app my-app

How to Run the App You Created with Create-React-App

After the installation is completed, change to the directory where your app was installed:

cd my-app

and finally run npm start to see your app live on localhost:

npm start

Now React app successfully installed.

2nd step

cd my-app

npm start

If you see something like this in your browser, you are ready to work with React. Congratulations! :)

Thank you for reading!



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store