15 lines
458 B
JavaScript
15 lines
458 B
JavaScript
import { Map } from 'immutable';
|
|
import { applyMiddleware, compose, createStore } from 'redux';
|
|
import { composeWithDevTools } from 'remote-redux-devtools';
|
|
import thunk from 'redux-thunk';
|
|
|
|
import rootReducer from '../reducers/index.js';
|
|
|
|
const composeEnhancers = composeWithDevTools({
|
|
port: 8000,
|
|
realtime: true,
|
|
suppressConnectErrors: false,
|
|
});
|
|
|
|
export const store = createStore(rootReducer, Map(), composeEnhancers(applyMiddleware(thunk)));
|