Redux
Redux is a predictable state container for JavaScript apps. It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test.
2023 Production Ready Redux with Redux Toolkit (RTK)
The maintainers of Redux have worked hard to give you a tool kit that takes much of the pain away from state management. RTK is the recommended way to manage your state with Redux.
RTK packages up your state into slices that are easy to access and send updates through so you can implement the logic you need without all the boilerplate. The features you build will be easier to understand and maintain as you add to your application.
Modern Redux with Redux Toolkit (RTK) and TypeScript
Confidently Testing Redux Applications with Jest & TypeScript
RTK Query Basics: Query Endpoints, Data Flow and TypeScript
Adopting RTK Query into an Existing Redux Application
Modernize Redux Applications
Redux has withstood the test of time. This means that you likely have Redux in your applications that don't follow the newly recommended Redux Toolkit patterns.
Luckily with RTK migration doesn't have to be all or nothing, you can start using the new patterns today and migrate your legacy Redux to these new patterns in your own time.
Get a jump start on how to go about modernizing your Redux applications today.
Classic Redux
Dan Abramov created Redux in 2015 which popularized a pattern the React community hadn't seen for managing state involving three driving principles:
- Single source of truth
- State is read-only
- Changes are made with pure functions
When you combine these principles you get a powerful toolset for wrangling state within your application (especially when asynchronicity is involved).
Learn from Dan what drove these decisions in this pairing of courses that work with the legacy Redux API