Why doesn't React update the entire UI after every state change?
Because React uses reconciliation.
When a component renders again, React produces a new element tree.
React then determines what changed compared with the previous result and prepare...
What Actually Happens When State Changes in React?
When state changes, many developers think:
setState → React updates the DOM
That's a useful simplified model, but there's more happening in between.
A better mental model is:
State / Props cha...