I try to avoid introducing global state as long as I can
I try to avoid introducing global state as long as I can.
Here’s why: The moment a system has global state, it tends to attract needless usage.
Nearly every React app I review that uses global state tools like context or Redux overuse it:
Examples:
🚫 Form state
🚫 Loading state
🚫 Single use dialog state
🚫 Single page settings
Rule:
Start local. Broaden scope only when necessary.
Global is a last resort.