Today was genuinely one of those sessions where you go in confused and come out feeling like you unlocked a new level.

Yesterday I learned what React does—it keeps a Virtual DOM in memory and updates only the parts of the Real DOM that actually changed.

Cool. Makes sense.

But one question kept bugging me all night:

How does React actually know what changed? 🤔