Virtual DOM
DOM stands for Document Object Model. It is the most important part of the web as it divides into modules and executes the code. Usually, JavaScript Frameworks updates the whole DOM at once, which makes the web application slow. But react uses virtual DOM which is an exact copy of real DOM. Whenever there is a modification in the web application, the whole virtual DOM is updated first and finds the difference between real DOM and Virtual DOM.
In the above-shown figure, when the whole virtual DOM has updated there is a change in the child components. So, now DOM finds the difference and updates only the changed part.
What are the features of ReactJS ?
Created by Facebook, ReactJS is a JavaScript library designed for crafting dynamic and interactive applications, elevating UI/UX for web and mobile platforms. Operating as an open-source, component-based front-end library, React is dedicated to UI design and streamlines code debugging by employing a component-oriented approach.
We will discuss about the following featured of React:
Table of Content
- JSX(JavaScript Syntax Extension):
- Virtual DOM:
- One-way Data Binding:
- Performance:
- Extension:
- Conditional Statements:
- Components:
- Simplicity:
Let’s understand each of them in detail:
Contact Us