Why do we use React?

  1. Speed => React is much faster than any other library, Reason behind that is that react created its own Virtual DOM and uses them instead of using every time real DOM.

DOM is like a structural representation of the HTML element of a web application.

Whenever there is a change in the state of the application, DOM gets updated and represents the changes. In every change, the DOM application gets re-render to update the application, which affects the performance the makes it slower to avoid this wee use react. In React Virtual DOM concept come to make the application faster and provide the best performance.

Virtual DOM is also like real DOM, whenever do any changes a new virtual dom is created and compared with real dom and only re-renders those changes and updates the application which helps to make the application faster and also provides the best performance.

For Example, if we make any application with the help of HTML and did any changes then the whole web application gets re-render which makes the web application slower instead of that if we use react did some changes in that application like if do some changes in form section then react create virtual dom for form section and compare with real dom and only update the form section in web page instead of re-render the whole page.

  1. Reliability => In the world, we saw that many best websites develop by the usage of React such as Facebook, Netflix, Airbnb and also react present in open-source. => In the survey State of JS 2020 react is in the one number position according to the usage of frontend frameworks by the voting of all of the world developers.
  1. Popularity => React is the most popular front-end framework nowadays, reason behind the popularity of React is:- Simplicity Reusable components:- React allows us to write code for one component such if we are developing a button component then we only make on components and there we write code of button and reuse them wherever we want to use it to make our code clean and stable.

Dynamic web Apps:- Before React creating a Dynamic web application has much complex coding. It uses HTML and JS to make a Dynamic page which we called here JSX and also react has the feature that it is a single page application.

Fast Rendering:- As we know react uses virtual dom if we do any changes in code or from the user side like if we fill the form and after submitting the form only the form section re-renders itself and stores the data else re-rendering the whole web page. which makes it a fast rendering application compare to others.

SEO Supportive Testability React Native:- React provide React-Native which helps to develop the mobile and IOS app with the help of JS and React-native have all the functionality of React.

According to Google Trend

  1. Scalability => React is a Scalability frontend framework, the reason behind this is that Ease of adding new code, changing the old one and also fixing the bugs React is suitable for big and complex projects

    => In React it is easy to extract new components and merge the components into one component helping with refactoring when the structure of the app is changing.

    =>High cohesion, low coupling, and components reusability seem like a good thing for the programmers, but it’s important from the business standpoint — those features allow us to make changes quickly and in the right place.

  2. Security => React use virtual DOM for that react is pretty good at automatic detection of injection attacks and since JSX is syntactic sugar (Syntactic sugar is any aspect of the syntax of a programming language that makes programs easier to read, write, or understand.)over createElement(), it has the power to secure the application via auto escaping functionality.

  3. Maintenance => React is an open-source and free library maintained by many developers and also they do changes according to demand and also react maintained by the world's biggest company Facebook.

Usage Static of React

Number of Websites developed with the help of React

Total No. sites online which are developed by React Total Live :- 10,945,991