Intro:
Hey there this is Rohit, today I am going to share an easiest guide for how to install react for beginners, So let's get into itWhat is react :
React is amazing JavaScript library for building front-end user interfaces.Pre-requisites :
Before installing react we need to install node which is cross-platform JavaScript runtime environment, with node it comes with npm i.e node package manager which allow you to install packages and dependencies.note: If you have already installed node in your system you can skip this step and move on to next
Let's Install React :
Installing React is the most easiest thing to do for that we need only one command in your terminal or PowerShell:npx create-react-app project-name
That's it after this command press enter on your keyboard and wait for npm to install all the dependencies and packages.
Congratulations you have successfully installed react for the project, Now enter these following commands to launch react on browser:
open the project directory by this command:
cd project-name
npm start
If you see this, Now you are good to go.
Top comments (2)
Thanks for this👍
👍