Create a Redux Middleware
Redux is a strict framework. Whether you view that as a pro or a con, middleware is sometimes needed to handle async and repetitive tasks. Let's see how easy it is to create and implement middleware in Redux. We'll start with a simple logger middleware, then create one that uses localStorage.