diff --git a/app/store/store.js b/app/store/store.js new file mode 100644 index 0000000..d009d7a --- /dev/null +++ b/app/store/store.js @@ -0,0 +1,17 @@ +import { createStore, combineReducers, applyMiddleware } from 'redux'; +import thunk from 'redux-thunk'; +import { walletReducer } from '../reducers/walletReducer'; +import { transactionReducer } from '../reducers/transactionReducer'; + +const rootReducer = combineReducers({ + wallet: walletReducer, + transactions: transactionReducer, +}); + +const initialState = {}; + +const middleware = [thunk]; + +const store = createStore(rootReducer, initialState, applyMiddleware(...middleware)); + +export default store;