Loading…
Loading…
Not every piece of state needs a global library.
Many projects reach for Redux too early, when most state just needs to live close to where it's used.
useState and useReducer cover most needs. Only lift state up when several places genuinely share it.
Data from APIs is best managed by tools built for caching and syncing, rather than stuffed into a global store by hand.
Simple state is state you can reason about.
No comments yet — be the first!