Header Ads

Header ADS

How to Install React & Create First React Project

 Do you want to learn how to install react and create your first react project?

Before getting started you need to have node.js installed in your pc.

Now lets download and install node.js

Step-by-Step Guide

 Go to nodejs.org/en

Download node.js

Click on next


Tick i accept the license terms.

Then click on next.


Click on next


Click on next


Click on next


Click on install


Click on finish


Now open command prompt and type node -v
This will show you the node.js version


Now type cd documents. 
This will navigate to documents project location.
Type mkdir React and press enter. This will create the folder.
now type cd React and press enter.
Then type npm install -g create-react-app and press enter.


npx create-react-app my-app
This will create the app


If you are seeing success that means the app has been created


Now type cd my-app and press enter.
Then type npm start and press enter.


Congratulations. You have created your first react project.











No comments

Powered by Blogger.