Summary
In this chapter, we discussed advanced patterns when developing JavaScript, Redux, and React applications. We started by learning about basic concepts, such as pure functions, and then moved on to higher-order functions. Next, we learned how to use these concepts in a Redux/React application through higher-order reducers and higher-order action creators. Then, we focused on how to implement generic undo/redo behavior in a Redux application by creating a higher-order reducer. Finally, we used the redux-undo library to achieve the same undo/redo behavior, as well as more customized behavior.
In the next chapter, we will cover how to directly extend the Redux store using middleware by providing an example of implementing logging in the ...
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