Categories: Ubuntu

How to Install ReactJS on Ubuntu 20.04?

React or Reacts was launched in 2011. It is a front-end JavaScript library that is used to develop UI components. It is managed by Facebook and open-source developers.

ReactJS is an open-source library that makes it effortless to create and maintain interactive UI specifically for single-page applications. Many developers are using it because of its flexibility, integrity, and its feature to bring Html directly into JS. Many well-known corporations such as Facebook, Uber, and Instagram used the ReactJS framework to create interfaces. To get ReactJS on Ubuntu, follow the procedure given below:

How to Install ReactJS on Ubuntu 20.04?

First, we need to install NPM, which is a dependency management tool containing all libraries. You can download any software package without login:

Installing
Sponsored
NPM

To install npm, open up the terminal and type the following command:

$ sudo apt install npm

To verify if the installation is completed successfully, check the npm version through the command:

$ npm –version

The npm will also install the node library along. To confirm its version, type:

$ node –version

Install Create-React-App tool

Install create-react-app helps to set all tools required to create React Applications.

Run the following npm command to install the create-react-app utility:

$ sudo npm -g install create-react-app

Check if the version is updated using the command:

$ create-react-app –version

Sponsored

The downloading process has been completed. Now you can create React-Application.

I am giving the name of the application as “linuxhint”. Run the below-mentioned command to create an application:

$ create-react-app linuxhint

After getting all packages, change the directory using:

$ cd linuxhint

Now, to run react application named linuxhint, type mentioned command:

$ npm start

You will get the following output:

And your browser will open-up and shows you that the app is up and running with local host-3000:

Conclusion

You have seen in this guide the process of installing  ReactJS on Ubuntu 20.04. ReactJS is a Javascript library that is famous among huge platforms like Facebook and Uber because of its usefulness and advanced features. What makes it unique is that it allows developers to break complicated UI into components.

Ubuntu Server Admin

Recent Posts

Open design: the opportunity design students didn’t know they were missing

What if you could work on real-world projects, shape cutting-edge technology, collaborate with developers across…

8 hours ago

Anbox Cloud 1.28.0 is now available!

Enhanced Android device simulation, smarter diagnostics, and OIDC-enforced authentication The Anbox Cloud team has been…

8 hours ago

83% of organizations see value in adopting open source, but report major gaps in security and governance

A new Linux Foundation report reveals how organizations worldwide are adopting, using, and perceiving open…

1 day ago

Everything you need to know about FIPS 140-3 on Ubuntu | Videos

FIPS 140 is a highly demanding security standard that’s mandatory for almost all high-security and…

2 days ago

A CISO’s preview of open source and cybersecurity trends in 2026 and beyond

Open source has come a long way. Recently I was watching a keynote address by…

1 week ago

Canonical Kubernetes officially included in Sylva 1.5

Sylva 1.5 becomes the first release to include Kubernetes 1.32, bringing the latest open source…

1 week ago