Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

redux logger

import { applyMiddleware, createStore } from 'redux';
 
// Logger with default options
import logger from 'redux-logger'
const store = createStore(
  reducer,
  applyMiddleware(logger)
)
 
// Note passing middleware as the third argument requires redux@>=3.1.0
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #redux #logger
ADD COMMENT
Topic
Name
3+7 =