How to use redux-logger.createLogger:
7 8 9 10 11 12 13 14 15 16 17 18
if (NODE_ENV !== "production") { // some redux dev middlewares // redux logger, available on browser console const { createLogger } = require("redux-logger"); const loggerMiddleware = createLogger({}); usedMiddlewares.push(loggerMiddleware); } const Middlewares = applyMiddleware(...usedMiddlewares);