From the course: Build Modern Web Apps with React, Hooks, State Management, and APIs Using Vite or Next.js

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Benefits: Performance, reusability, strong community, SEO (with SSR/SSG)

Benefits: Performance, reusability, strong community, SEO (with SSR/SSG)

From the course: Build Modern Web Apps with React, Hooks, State Management, and APIs Using Vite or Next.js

Benefits: Performance, reusability, strong community, SEO (with SSR/SSG)

Welcome back, in this video, we'll discuss why we should use react and what benefits it offers. The first and the most important benefit of react is performance. As we know, the browser understands only HTML and renders it. Whenever we make any changes to our code, we have to refresh the whole page to see the changes. It involves re-rendering of the whole html DOM. Whether your changes involves only a spans value update, the whole UI is re-rendered. React offers great performance improvement by creating a copy of html DOM in memory, which is called virtual DOM. React's algorithm notes your changes and only updates the element which has changed, not the whole UI. This is a great improvement and offers a performance boost. Next in the list is Reusability. As we discussed in the previous video, React's UI comprises of components. and components provides reusability. They can be used in your other projects as well. Some examples of reusable components are a photo upload control, which you…

Contents