Creating a ReactJS application

1. Run this command in your terminal 

if you have installed CRA globally

create-react-app hello-world

OR

if you haven't installed CRA globally

npx create-react-app hello-world

make sure you are connected to the internet

 

2. now run the following command and wait for a few seconds

cd hello-world/
npm start

you should see a similar message

 

3. Now open your web browser and go to this link http://localhost:3000/. You should see something like this

 

Hurray 🥳 You have successfully set-up a ReactJS application

 

Note- Press ctrl+C to stop running the react application

Discussion