jargon

Frontend & browser·State, data and re-rendering

the same value was stored in two places and they drifted apart, so the header and the sidebar disagreed.

Single source of truth

The rule that each piece of state is owned in exactly one place and everything else reads it from there. Every duplicate is a synchronisation bug waiting for the update path that forgets one copy. The most common violation is copying a prop into state on mount, which quietly stops tracking the prop from then on.

Commonly confused with