Skip to content

Redux is a predictable state container for js

Redux defines itself as:

A Predictable State Container for JS Apps - The Redux docs site

Redux is both a pattern and library for managing and updating application state, using events called actions. It helps you manage global application state, serving as a centralized store, with rules ensuring that the state can only be updated in a predictable fashion.

Redux can have nice Typescript integration. It is often used with React via the react-redux package, but doesn’t have to be. Not all apps need redux though, make sure you really need it before adding it to yours.

Redux has been around a long time (from 2015), and the “best practices” for how to use it, and what the actual code looks like, has evolved quite a lot in recent times. I’ve only begun working on projects that use redux recently, migrating from an older style implementation to modern redux with Redux Toolkit (aka RTK).

Further Reading