applyMiddleware takes each piece of middleware as a new argument (not an array). So just pass in each piece of middleware you’d like.
const createStoreWithMiddleware = applyMiddleware(ReduxThunk, logger)(createStore);
applyMiddleware takes each piece of middleware as a new argument (not an array). So just pass in each piece of middleware you’d like.
const createStoreWithMiddleware = applyMiddleware(ReduxThunk, logger)(createStore);