CodeZettaInterview Hub

React · State · Junior · Debugging

Storing derived data in state — why is it a smell?

Short Interview Answer

Duplicated state drifts out of sync; derive during render or with useMemo instead.

Detailed Explanation

Keep minimal state; compute filtered lists from source + filter query.

Did you know this answer?