How to install React JS : Automatic and Manual Installation

July 4th, 2017 . 3 minutes read
Blog featured image

Looking for how to Install React JS? You are at right place, we will discuss manual and automatic installation of React js in this article.

React JS is a famous JavaScript flexible front end library which is introduced by Facebook. It is totally component-oriented and helps to build the modular UI.

How to install the React JS :

There are 2 types of the installation process.

  •  Automatic installation
  •  Manual Installation

1. Automatic Installation of React.JS

The automatic process should be used when we want to create a new application of React.


  • npm install -g create-react-app
  • create-react-app my-app
  • cd my-app
  • npm start

(After that your application will run on the browser)

2. Manual Installation of ReactJS:

The manual installation process should be used when we want to use react in our existing application.


  • Webpack – It is a bundler, with the help of this we can write modular code and it creates a bundle of all the modules, it increases the performance of our application.
  • Babel – It is a compiler, it helps to run modern JavaScript (Like ES6) code in the older browser also.
    After installing webpack and Babel we have to install “react” and “react-dom” module.
  • npm install react react-dom –save After these installations, we can make components and render them also.

Folder structure:

This folder structure will help you to know all the required files used in our application. As you see node_modules folder is here, it contains all the modules which are required in our application like react, react-dom, webpack, Babel etc…

Most required files:

⦁ index.html:  This file will look like this.

⦁  .babelrc file: This file includes Babel configuration.

Webpack.config file: this is Webpack configuration file.

src/index.js file: This is the main file because we have made this file as the entry of this application.

So, your application is ready, for run this application use “npm start”.

With the help of this blog, you can install react in your application. I have introduced 2 methods of installation. So, you can create new react application or you can add react application in your existing application.

Habilelabs provides the best Web and Mobile Apps Development services with quality assurance, contact us if you have something to build in your mind.

Ask your quires about the installation problem in the comment section.

Hope you found it helpful, so don’t forget to share it with friends.

Author: rohit