“Redux Dev Tool” Code-Antworten

Redux Devtools

npm install --save redux-devtools-extension
Clever Cheetah

Redux Devtools Chrome

 const store = createStore(
   reducer, /* preloadedState, */
+  window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
 );
Testy Tarsier

Redux Dev Tools

//add middleware in store
 window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
Clear Copperhead

Redux Devtools

 window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
Thoughtless Termite

Redux Devtools

import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';

const store = createStore(reducer, composeWithDevTools(
  applyMiddleware(...middleware),
  // other store enhancers if any
));
Blushing Butterfly

Redux Dev Tool

 window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()

add this on store
const store = createStore(
  rootReducer,
  window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
Blue Baboon

Ähnliche Antworten wie “Redux Dev Tool”

Fragen ähnlich wie “Redux Dev Tool”

Weitere verwandte Antworten zu “Redux Dev Tool” auf JavaScript

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen