Showing
1 changed file
with
17 additions
and
0 deletions
client/src/store.js
0 → 100644
1 | +import { createStore, applyMiddleware } from "redux"; | ||
2 | +import thunk from "redux-thunk"; | ||
3 | +import combineReducers from "./reducers"; | ||
4 | + | ||
5 | +import { composeWithDevTools } from "redux-devtools-extension"; | ||
6 | + | ||
7 | +const initialState = {}; | ||
8 | + | ||
9 | +const middleware = [thunk]; | ||
10 | + | ||
11 | +const store = createStore( | ||
12 | + combineReducers, | ||
13 | + initialState, | ||
14 | + composeWithDevTools(applyMiddleware(...middleware)) | ||
15 | +); | ||
16 | + | ||
17 | +export default store; |
-
Please register or login to post a comment