What is React ? What are the advantages of using React ?

What is React ? What are the advantages of using React ?

React is front-end and open-source JavaScript library which is useful in developing user interface specifically for applications with single page. It is helpful is building complex and user interface (UI) components for mobile and web applications as it follows component based approach.

Some advantages of using React :

  1. React supports server-side-rendering

  2. It will make use of Virtual Dom (Document Object Model) rather than Real Dom as Real Dom manipulations are expensive.

  3. It follows unidirectional data binding or data flow.

  4. It uses reusable or composable components for developing the view.

  5. Use of Virtual DOM to improve efficiency: React uses virtual DOM to render the view. As the name suggests, virtual DOM is a virtual representation of the real DOM. Each time the data changes in a react app, a new virtual DOM gets created. Creating a virtual DOM is much faster than rendering the UI inside the browser. Therefore, with the use of virtual DOM, the efficiency of the app improves.

  6. Gentle learning curve: React has a gentle learning curve when compared to frameworks like Angular. Anyone with little knowledge of JavaScript can start building web applications using React.

  7. SEO friendly: React allows developers to develop engaging user interfaces that can be easily navigated in various search engines. It also allows server-side rendering, which boosts the SEO of an app.

  8. Reusable components: React uses component-based architecture for developing applications. Components are independent and reusable bits of code. These components can be shared across various applications having similar functionality. The re-use of components increases the pace of development.

  9. Huge ecosystem of libraries to choose from: React provides you with the freedom to choose the tools, libraries, and architecture for developing an application based on your requirement.