Skip to main content

Basics

Re-Rendering​

  • initial render - happens when a component first appears on the screen
  • re-render - second and any consecutive render of a component that is already on the screen. Re-renders in React happen when the app updates with new data, usually from user interactions or asynchronous requests
  • necessary re-render - updates a component directly reflecting changes (e.g., input field updates on keystrokes)
  • unnecessary re-render - caused by inefficiencies, leading to broader re-renders (e.g., entire page re-renders on keystrokes). Excessive re-renders can cause lag, delays, or unresponsiveness