dsi-icl/optimise

View on GitHub
packages/optimise-ui/src/redux/store.js

Summary

Maintainability
A
0 mins
Test Coverage
import { applyMiddleware, createStore } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { rootReducer } from './reducers';

const store = createStore(rootReducer, applyMiddleware(thunkMiddleware));
window.store = store.getState;

export default store;