Blog › React · Published 2026-11-26

React rerender: why forcing fails and what actually triggers it

Searching "how to force a React component to rerender" usually means something else is wrong: your UI and your state have drifted apart. React's own docs describe rendering as a three-step cycle you trigger the right way, never by force. This guide explains the cycle and the fixes, per react.dev.

Rendering is a three-step cycle

React's docs picture your components as cooks in a kitchen: trigger a render (the order goes in), render the component (the kitchen prepares it), commit to the DOM (the dish reaches the table). A "rerender" is just another trip through this cycle.

Only two things trigger a render

  1. The component's initial render: your app calls createRoot(...).render(<App />) once at startup.
  2. A state update on the component or one of its ancestors, via the setter from useState.

That is the complete list. If your screen is stale, the honest question is "why didn't state update?", not "how do I force a refresh?"

Why forcing fails anyway

Rendering does not always produce a DOM update: React compares the new render output with the previous one and commits only the differences. A forced rerender of unchanged state changes nothing on screen, which is why force hacks feel randomly broken.

The usual real causes

Quick diagnosis table

SymptomReal causeFix
List UI not updatingArray mutated in placeSetter with a new array
Counter stuckPlain variable, not stateuseState
"Force update" hacks neededState lives in the wrong placeLift state up / derive during render

Related: fetch with async/await: proper error handling for feeding your state from an API.

Official sources

Need help with your project?
We build websites, systems and automation. Start your project WhatsApp

All articles