In this article, We will explain to you how to install react js on Ubuntu 16.04 And 18.04. ReactJs is an open-source JavaScript library and it is developed by Facebook. react js can be used to make a single-page application(SPA). ReactJS is also used to reuse UI components and run without reloading application so it is scalable, simple, and fast.
So, you can follow the below steps to Install React Js On Ubuntu.
First, we need to install node js in the system. if not installed node js in your system then you can follow the below URL.
Now, we need to install globally by using a create-react-app NPM tool.
npm install -g create-react-app
Now, After the complete create-react-app installation, we can also create our application using the below command.
npx create-react-app my-app
Here, You can name whatever you like for your application.
If you want to run the application then you can follow the below command. if you any change in your app then use the npm run build and after you can run the application.
cd my-app npm start
