Zeeshan Saleem
You definitely don't need Redux just for client state. React Query handles the server state (which is usually 90% of what we put in Redux anyway). For the rest, strictly client-side state, React Context or a lightweight library like Zustand is perfect.
Zeeshan Saleem
Second this. I replaced a massive Redux boilerplate with just React Query and Zustand. My bundle size dropped significantly, and the code is so much easier to read now.
I've been using Redux for years to handle server state, but I keep hearing that React Query eliminates the need for it. If I switch, how do I handle non-server global state like UI themes or modals? Do I still need Redux for that, or should I just use Context API?