Skip to main content
React Interview Questions Theory P0 Medium

Render vs commit and why components re-render

When does React call a component, and does every render change the DOM?

Official Reference

Model Answer & Explanation

Rendering calls components to compute the next UI. Updates can be driven by a component’s state, a parent rendering or subscribed context. Committing applies the necessary DOM changes. A render does not imply the DOM changes, and render code should stay pure.

Follow-up Interview Question · What would you measure before optimizing re-renders?

Module Context & References

React · Rendering & hooks theory Explain renders, reconciliation, keys, state, effects and performance
Personal Notes · Markdown

Technologies & Interview Topics Covered

Switch between short-term interview tracks and long-term 80/20 engineering depth to practice JavaScript internals, React rendering and hooks, timed frontend machine coding UI challenges, MeetaPro FG300, Blind 75 & NeetCode 150 DSA patterns, Python & FastAPI APIs, PostgreSQL query optimization & MVCC, Redis caching, Applied AI RAG pipelines & evaluations, and distributed system design.