render
In React, calling a component to find out what it should display now; a re-render is any render after the first.
In more detail
A component re-renders when its state changes, when its parent re-renders, or when a context it reads changes. Rendering only produces elements; the page changes only if the commit finds differences. Many re-renders are cheap and harmless, so measure before optimising.
Related terms
- render phase — The part of an update where React calls your components and compares the results with the previous tree, without touching the page.
- commit phase — The part of an update where React applies the calculated changes to the real DOM, all at once and without interruption.
- React.memo — A React function that wraps a component so it skips re-rendering when its props are shallowly equal to the previous ones.
- wasted render — A re-render that produces exactly the same output as before, so the work changed nothing on screen.
Taught in
- JSX Transpilation: createElement, JSX Runtime, React Elements — React 19 & Modern Component Architecture
- Component Purity: Pure Functions, Idempotence And Side Effects — React 19 & Modern Component Architecture
- Props Contract: Immutability, Children, And Polymorphic Tags — React 19 & Modern Component Architecture
- State with useState: Immutability And Asynchronous Batching — React 19 & Modern Component Architecture
- Complex State with useReducer: State Machines And Action Types — React 19 & Modern Component Architecture
- Virtual DOM vs Real DOM: The Reconciliation Cost Model — React 19 & Modern Component Architecture
- React Fiber Architecture: Work Units, Priority And Commits — React 19 & Modern Component Architecture
- Keys In Depth: Identity Preservation And Identity Resetting — React 19 & Modern Component Architecture
- Diffing Algorithm: Element Type Shifts And Subtree Tear Down — React 19 & Modern Component Architecture
- SyntheticEvent System: Event Delegation in Modern React — React 19 & Modern Component Architecture