You can simply pass the middlewares in the comma separated manner like the following code: const store = createStore(reducer, applyMiddleware(thunk, logger)); Note: Please import the applyMiddlware, thunk, and logger at the top.
Read moreWhat is logger middleware in Redux?
It provides a third-party extension point between dispatching an action, and the moment it reaches the reducer . People use Redux middleware for logging, crash reporting, talking to an asynchronous API, routing, and more.
Read moreWhat is Redux logger?
LogRocket is a production Redux logging tool that lets you replay problems as if they happened in your own browser . Instead of guessing why errors happen, or asking users for screenshots and log dumps, LogRocket lets you replay Redux actions + state, network requests, console logs, and see a video of what the user saw.
Read more