Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.
snippet in 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.

user9819

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;