An easy mistake to make: Needlessly “high” state


An easy mistake to make: Needlessly “high” state.

Example: State that is merely passed down to a child component.

Why it's a problem: Wastes resources, causes needless renders, adds needless complexity

Solution: Move the state down.

Keep state as local as possible.

View original on X