how to integrate redux dev tool to react application code example
Example 1: how to integrate redux dev tool to react application
import { createStore, applyMiddleware, compose } from 'redux';
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(reducer, composeEnhancers(
applyMiddleware(...middleware)
));
Example 2: how to integrate redux dev tool to react application
const store = createStore(
reducer,
+ window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);