Total Complexity | 2 |
Complexity/F | 0 |
Lines of Code | 13 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Coverage | 33.33% |
Changes | 0 |
1 | import ReduxThunk from 'redux-thunk'; |
||
2 | import { applyMiddleware, compose, createStore } from 'redux'; |
||
3 | 4 | import reducers from '../reducers'; |
|
4 | |||
5 | 4 | const composeEnhancers = process.env.NODE_ENV !== 'production' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ |
|
6 | ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ |
||
7 | : compose; |
||
8 | |||
9 | const store = createStore(reducers, composeEnhancers( |
||
10 | applyMiddleware(ReduxThunk) |
||
11 | )); |
||
12 | |||
13 | export default store; |
||
14 |