Ankilan/src/store.js

12 lines
437 B
JavaScript
Raw Normal View History

2020-03-05 22:16:34 +00:00
import {createStore, applyMiddleware} from 'redux';
import {composeWithDevTools} from 'redux-devtools-extension';
2020-03-07 14:30:26 +00:00
import thunk from 'redux-thunk';
2020-03-05 22:16:34 +00:00
import mainReducer from './reducers/main-reducer'; //your reducer
const composeEnhancers = composeWithDevTools({realtime: true, port: 8081}); //possible to run without arguments
const store = createStore(
mainReducer,
2020-03-07 14:30:26 +00:00
composeEnhancers(applyMiddleware(thunk)),
2020-03-05 22:16:34 +00:00
);
export default store;