Skip to content
Advertisement

Getting Redux DevTools To Work

I followed the tutorial, however, am getting the console error:

Error : Expected the reducer to be a function

Here is my ( relevant ) configuration:

WEBPACK.CONFIG.JS:

JavaScript

INDEX.JS:

JavaScript

CONFIGURESTORE.JS:

JavaScript

CONFIGURESTORE.DEV.JS:

JavaScript

Im not clear on what I am doing wrong. Thanks

Advertisement

Answer

Having a redux dev tools log monitor over my page was a little bit frustrating. So I found an chrome plugin called Redux DevTools.

All all you need to start using it is simply install this plugin and modify redux’s createStore using compose function.

Example:

JavaScript
Advertisement