AceDevHub
Beginner React Interview QuestionsBeginnerComparison

React · Question 14

What are the render and commit phases in React?

Direct answer

During render React calculates what the component tree should look like; during commit React applies the required changes to the DOM and attaches refs.

PhaseWhat React doesSide effects?
RenderCalls components and calculates the next UIRendering logic should stay pure
CommitApplies required DOM changes and updates refsDOM is being synchronized
Browser paintBrowser displays the resulting pixelsHandled by the browser

A render can happen without producing a DOM mutation. This distinction is essential when debugging repeated renders or performance.