When I'm building a React app, how do I manage state?
Keep state as low as possible.
- Local State
- Lift State
- Global State (with contexts)
Once you are dealing with Global State, you're welcome to use MobX, Redux, Overmind, Zustand, Recoil, etc... or just stick with useState
.
React Query, SWR, Apollo Client, urql