Chapter 13Using Redux to Manage State
Now that we are using a reducer to manage state in our React app, we’ve come up against an issue with integrating our asynchronous actions with our reducer. We’ve chosen to keep our asynchronous actions outside our reducer, which means we need to remember to trigger the asynchronous actions when we call the reducer.
This brings us to a tool called Redux[81] and its associated library, React-Redux.[82] Redux is a more complex version of the reducer and store pattern we’ve been working with. I’m not going to cover a lot of the extended complexity here, but Redux has support for more complex combinations of reducers and actions than we need, at least at the moment. It bills itself as a “Predictable State Container ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access