![Use redux-like middleware for useReducer in React](https://www.wisdomgeek.com/wp-content/uploads/2021/01/middleware-for-useReducer-520x293.png)
Use redux-like middleware for useReducer in React
If you have used Redux before, you would be aware of the concept of middlewares. Now that useReducer has become a commonly used react hook, we might want to replicate the idea of middleware for the useReducer hook as well. If you do not know about middlewares, middlewares are functions...