React JS Intro
React JS Intro
Overview
• ReactJS is a declarative, efficient, and
flexible JavaScript library for building reusable
UI components.
• It is an open-source, component-based front
end library which is responsible only for the
view layer of the application.
• It was initially developed and maintained by
Facebook and later used in its products like
WhatsApp & Instagram.
Overview
• The main objective of ReactJS is to develop User
Interfaces (UI) that improves the speed of the apps.
• It uses virtual DOM (JavaScript object), which improves
the performance of the app.
• The JavaScript virtual DOM is faster than the regular
DOM.
• We can use ReactJS on the client and server-side as
well as with other frameworks.
• It uses component and data patterns that improve
readability and helps to maintain larger apps.
React Environment Setup
Main.js
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';