In this lesson, we're going to understand the important react concepts
In the last lesson, we saw why React has become the most popular web framework. In this lesson, let's study all the concepts which made React what it is right now. This course assumes you have some prior React knowledge, but just to make sure we all are on the same page, let's discuss the React core concepts.
diff algorithm to compare the versions of virtual DOM. It then makes sure that batched updates are sent to the real DOM for re-rendering of the UI. It prevents us from changing the Real DOM every time some event occurs, which saves lot of memory and makes React so much faster.
We can't talk about React without talking about Components. They are building blocks of React applications. Don't be confused, they are just usual React functions and classes which return the JSX. They are so popular because they are reusable and also easier to maintain. Let's suppose we have two pages, and each page has a unique header and a footer, but the form is same. Rather than creating two different forms, we can create a single component and use it in both pages. By doing this, you have to write less code and also it's easier to maintain because changes can be made to the form component, rather than changing code in two pages.