PwC / Conscience

Don't Jump Straight in Bed with Redux

State management shouldn't be a shotgun wedding.

Last Updated: Nov 20, 2025

Understand how Redux works, and why you are using it in your app.

Are you using it just to avoid prop drilling because your app requires many components to access the same pieces of state? Since version 16.3, React has created a new Context API to address this exact situation. Learn how to use it to pass data deeply.

Is Redux used in your app to help with caching state from the server and nothing else? Check out Vercel's SWR library or TanStack Query (formerly react-query). These libraries are designed for just this use case, which means you probably don't need Redux at this point in your app.

Why?

Redux is a full-featured, opinionated state management tool. It can do many things, but maybe isn't the best at all of them (Mark Erkson, maintainer of Redux, said so himself in this episode on the JS Party podcast right around the hour-and-2-minute mark). Understanding what Redux does and the specific needs of your application allow you to decide the best tools to integrate with your application, instead of running npm install react-redux right after you create your React app and introduce indirection and unnecessary cluttering in your code.

If after you evaluate your needs and find a match in Redux's capabilities, then by all means, use Redux. It can do some things really well, like:

  • Preserving a single source of truth
  • Managing large amounts of application state that constantly change
  • Handling complex logic to update state
  • Maintaining a history of how the application state has changed over time
  • Caching state from a server

Oh, and before you get started, you might want to know, Redux Toolkit is now the officially-recommended way to use Redux.

Zaid's Note: Zustand (pronounced tsoo-shtahnd) is rapidly replacing Redux on React projects as a simpler alternative (to even @reduxjs/toolkit)! If for nothing else, do check out their landing page. It's a work of art ❤️

Peter's Note: Poimandres, the organization that authored Zustand, has other neat alternatives like Jotai and Valtio. Also, have a read of Sahaj's (creator of tweakcn) blog "The URL is a great place to store state in React".

On this page