Rendering

Rendering

  • Rendering is React calling your components
  • Rendering parent component causes child components to be rendered as well

Render Tree

Reconciliation

How to check if state is changed?

Virtual DOM

  • ReactJS maintains two virtual DOM, one with the updated state Virtual DOM and other with the previous state Virtual DOM
  • Then React can figure out which objects have been changed, and this process is called Diffing
  • Once React knows which objects to update, it updates only those objects in the Real DOM