Render and Commit

React renders the DOM on init, and when a component updates. When a component updates, the minimal changes will be made to the DOM to complete the update; this is determined upon initial render.

Trigger

There are two reasons for a component to render:

  1. It’s the component’s initial render.
  1. The component’s (or one of its ancestors’) state has been updated.

Render

After you trigger a render, React calls your components to figure out what to display on screen. “Rendering” is React calling your components.

This process is recursive: if the updated component returns some other component

Commit

After rendering (calling) your components, React will modify the DOM.