How to Install ReactJS on Ubuntu 18.04 LTS


Created by Facebook in 2011, React (likewise alluded to as ReactJS) is a Javascript library utilized for making quick and intelligent UIs. At the hour of composing, it’s the most mainstream Javascript library for creating UIs. Respond destroys its partners – Angular and Vue JS as far as usefulness and prominence.

Its ubiquity originates from its adaptability and straightforwardness and this settles on it the best option in the improvement of versatile applications and web applications. In excess of 90,000 destinations use React including tech monsters like Facebook, Netflix, Instagram, Airbnb, and Twitter to list a couple.

In this post, We will install ReactJS on Ubuntu 18.04 LTS.
Step 1: Update and Upgrade the System
You need to update and upgrade your current installed packages by following the given command.

sudo apt-get update && sudo apt-get upgrade -y 

Step 2: Install NPM
We need to execute the given command to install NPM packahes in our ubuntu machine.

sudo apt-get install npm -y  

after installation of the npm packages, You can verify the npm version.
Step 3: Creating React-App
To create a react-app use the following command for the same.

sudo npm -g install create-react-app   

Verify the created app version by using this command.

create-react-app --version 

Step 4: Start the App
Execute the following command to start the app it will start working on 3000
Port on your localhost and IP address. 

create-react-app techbeginner-app

cd techbeginner-app

To start the reactJs app, You need to execute the following command. 

npm start

Open your browser and hit the given link like this.

http://localhost:3000 or http://IP_ADDRESS:3000

We have successfully installed ReactJS on Ubuntu machine, If still you have any question, Please leave a message.

How to Install ReactJS on Ubuntu 18.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top