Skip to content

Commit

Permalink
Create store.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 24, 2024
1 parent fd896df commit 7e4c3bf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/store/store.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 7e4c3bf

Please sign in to comment.