Answers for "how to integrate redux dev tool to react application"

9

how to integrate redux dev tool to react application

const store = createStore(
   reducer, /* preloadedState, */
+  window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
 );
Posted by: Guest on September-10-2020
0

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, /* preloadedState, */ composeEnhancers(
    applyMiddleware(...middleware)
  ));
Posted by: Guest on June-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language