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.
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.
To start the reactJs app, You need to execute the following command.
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.