Back to search

Parent vs child re-renders, initial render, re-renders, and state colocation

Initial render and later re-renders follow different triggers, and where state lives strongly affects how much of the tree must update.

React Medium Theory

Parent vs child re-renders, initial render, re-renders, and state colocation

Initial render and later re-renders follow different triggers, and where state lives strongly affects how much of the tree must update.

  • Parents can re-render children indirectly
  • State colocation reduces blast radius
  • Not every re-render is a bug

Parent vs child re-renders, initial render, re-renders, and state colocation