Thursday, February 23, 2023

How to install React JS in ubuntu

 Hello

Today I explained how to install reactjs into ubuntu.

Open terminal and type these commands step by step.

  1. sudo apt install npm
  2. npm --version
  3. node --version
  4. sudo npm -g install create-react-app
  5. create-react-app --version
create-react-app it will create global installation package. Now you can use it to your application name. 
Now go to your html folder and open terminal like this. And write this command:
6.create-react-app react2
Where "react2" is your application folder name.



7. Now run this command : cd react2 
It will go to directory "react2".
8. Now run this command : npm start

It will create this output

Now react js is started. Now you can edit files and work ahead. 
Thank you.

No comments:

Post a Comment