BACK TO SOFTWARE ENGINEERING TRACK
FULL STACK & WEB SYSTEMS•2021-04-07•4 MIN READ

How to Install ReactJS on Ubuntu 20.04

React. js is an open-source JavaScript library that is used for creating web frontend and UI components specifically for single-page applications. It's used for handling the view layer for web and ...

#systems-engineering

Key Architecture Takeaways

  • ›
    Point 1: Full-stack architecture blueprint: How to Install ReactJS on Ubuntu 20.04.
  • ›
    Point 2: Covers MVC separation of concerns, routing pipelines, and database abstraction.
  • ›
    Point 3: Modern ecosystems: Laravel 11/PHP 8.3, React 19, and Node.js LTS runtimes.
Notice

Modern Framework Landscape (2026)

Web engineering patterns have evolved: Laravel now utilizes PHP 8.2+ typed properties, Vite asset bundling, and strict Eloquent typing, while Node.js LTS supports native fetch and ESM modules out of the box.


React. js is an open-source JavaScript library that is used for creating web frontend and UI components specifically for single-page applications. It's used for handling the view layer for web and mobile apps. It is developed and maintained by Facebook and a large community of developers.

History of React JS

React was created by Jordan Walke, a software engineer at Facebook, who released an early prototype of React called "FaxJS". It was first deployed on Facebook's News Feed in 2011 and later on Instagram in 2012. And finally, it was open-sourced at JS Conference US in May 2013. And as a result, the Reacts first release was published in 2013.

In this tutorial, you will learn to install and create React Application on a Ubuntu Linux system.

View on Youtube:

Here are the major steps that you have to follow:

- - Install Node.js - - Install Yarn package manager on your system - - Create A New React Application - - Start React Application - - Create React.js Production Build

Step 1 - Install Node.js

Node.js is required to create and run a React.js application. The following steps will install Node.js 14 on your Ubuntu system. or click here to choose your desired version.

-

<li>Add the Node.js 14 (current stable version) PPA to your Ubuntu system

bash
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
  • ›
    Next, run the following command to install the Node.js to your system:
bash
sudo apt install -y nodejs
  • ›
    Check the currently active version of Node.js
bash
node -v
  • ›
    Also, you can check npm version using.
bash
npm -v

</li>

react js 1react js 1

Step 2-Install Yarn package manager on your system

Also install Yarn package manager on your system.

bash
npm install -g yarn

Step 3 - Create A New React Application

And now we are move for next step to install yarn package manager, although you could use npm or npx command to install the React JS. But I am gonna use yarn to do that. And obviously, there are some reasons behind that. The key difference between npm and yarn is that the yarn is easy to manage and it can install packages simultaneously which tremendously reduces your install time. It gives Clean output compare to npm. So, there are lots of advantages using yarn.

bash
yarn create react-app myreactapp

On successful application creation, you will see a long result on the screen. In the end, you will find the result like below with some useful commands.

react js 2react js 2

Step 4 - Start React Application

Once you have created your React application. This will create a folder in the current directory with the project name. Switch to that project and run yarn start to start the application.

bash
cd myreactapp </code> `yarn start

The default reacts application starts on port 3000. Access your React application using 3000 port with the system IP address. For local machines use "localhost" followed by port.

reactjsreactjs

Let's create an awesome user interface with React.

Step 5 - Create React js Production Build

Once your application is ready for production deployment. Let's create a production build of your React application. The Production build contains static files required to run the application in the production environment. You don't need to install Node.js on production servers as they don't contain any development files.

Use <code>yarn build or npm run build` command to create a production build of your React.js application.

bash
cd myreactapp </code> <code class="terminal-user">yarn build

On successful build, you will see the output like below:

reactjsreactjs

All the production files are created under the build directory. Upload all the content from the build directory to the production website document root.

Conclusion

In this tutorial, you have learned, how to set up the React.js development environment and access the application in a web browser. Additionally, you found instructions to create a production build of your React application.

How to Install ReactJS on Ubuntu 20.04 | TechNHIT Software Systems | TechNHIT