In this article I will present how the diff algorithm and rendering work in React so you can optimize your own apps.
At any point in time, you describe how you want your UI to look like. It is important to understand that the result of render is not an actual DOM node. Those are just lightweight JavaScript objects. We call them the virtual DOM.
React is going to use this representation to try to find the minimum number of steps to go from the previous render to the next.
Your new post is loading...