Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.

import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import reducers from '../reducers';

const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

const store = createStore(
  reducers,
  composeEnhancer(applyMiddleware(thunk)),
);

export default store;
Comment

PREVIOUS NEXT
Code Example
Javascript :: google dinosaur game 
Javascript :: is string javascript 
Javascript :: js console log with color 
Javascript :: js mouse position relative to element 
Javascript :: read file node 
Javascript :: js wait for seconds 
Javascript :: javascript remove spaces at the beginning of the end of the string 
Javascript :: js parse string to html elemen 
Javascript :: javascript check if undefined 
Javascript :: Drupal 8 get page node current path 
Javascript :: vanilla js on click 
Javascript :: how to use lodash in angular 
Javascript :: Storing Objects in HTML5 localStorage 
Javascript :: thousands by comma javascript 
Javascript :: addeventlistener hover js 
Javascript :: javascript prevent context menu 
Javascript :: on enter key press react 
Javascript :: document ready function 
Javascript :: command to create react app 
Javascript :: Appium find Android element by Id using Javascript 
Javascript :: javascript get element width and height 
Javascript :: text number of lines react native 
Javascript :: nodejs fs delete file 
Javascript :: how to check if selector exists or is present puppeteer 
Javascript :: react native hide stack navigator title 
Javascript :: jquery get data attribute value 
Javascript :: javascript time execution 
Javascript :: js remove trailing slash 
Javascript :: javascript sort by numerical value 
Javascript :: moment today date 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =