DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk2 min

React Reconciliation: Why a Render Doesn’t Always Change the DOM

React rendering calculates the next UI; commit updates the DOM when needed, and the browser paints afterward. A render alone does not guarantee a DOM change.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A React render is not a browser repaint—and it does not necessarily change the DOM. React first calls components to calculate the next UI, then commits any necessary DOM updates; the browser handles painting afterward.

What React rendering means

When React renders, it calls components and uses their output to determine what the UI should look like. Rendering is a calculation step, not a synonym for updating the DOM or drawing pixels on the screen.

As an Amazon Associate I earn from qualifying purchases.

In discussions of reconciliation, the term often refers to React working out how the next element tree relates to the previous one. For understanding visible updates, React’s documented sequence is more useful: trigger, render, commit, then browser paint. See React’s Render and Commit guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How render, commit, and paint differ

Stage Who does it What happens
Render React Calls components and calculates the next UI.
Commit React Applies the necessary changes to the DOM.
Paint The browser Repaints the screen based on the updated page.

The key distinction is that React can render without changing any DOM nodes. If the calculated result is the same as before, React has no DOM update to commit. When something differs, React applies the necessary operations rather than replacing everything by default.

Why a re-render may leave the DOM alone

Imagine an update changes the text in an <h1> while an <input> remains unchanged. React can update the heading and preserve the existing input node. The component rendered again, but that does not mean every DOM node was recreated—or that a change to every node was needed.

This is why “the component rendered” is not enough to conclude that the DOM changed. A render tells you React calculated output; the commit step determines whether there are DOM operations to apply.

When DOM refs are safe to read

Do not assume that a DOM ref already reflects an update while React is rendering it. During an update’s render phase, the DOM nodes have not yet been updated. React sets affected refs during commit, around the DOM update. The Manipulating the DOM with Refs guide explains this timing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How effects fit into the sequence

Passive effects such as useEffect usually run after paint, but “usually” matters: effect timing is not a universal promise that every update follows one identical schedule. React’s Performance Tracks distinguish commit work, layout effects, and remaining passive effects. Check the guidance for the specific update path rather than assuming that all effects run at one fixed point.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What flushSync changes—and what it does not

flushSync is a specialized API for integrations that need React to flush pending work and update the DOM synchronously. React cautions that it can significantly hurt performance and should be used sparingly; see the flushSync reference.

Synchronously updating the DOM does not make React’s render calculation the same thing as browser painting. The stages still describe different work performed by different actors.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.