chore(client): Move client app to /client
This commit is contained in:
committed by
mrugesh mohapatra
parent
0e4f588a1c
commit
e59ad6ebda
16
client/src/redux/createStore.js
Normal file
16
client/src/redux/createStore.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { createStore as reduxCreateStore, applyMiddleware } from 'redux';
|
||||
import createSagaMiddleware from 'redux-saga';
|
||||
|
||||
import rootReducer from './rootReducer';
|
||||
import rootSaga from './rootSaga';
|
||||
|
||||
const sagaMiddleware = createSagaMiddleware();
|
||||
|
||||
export const createStore = () => {
|
||||
const store = reduxCreateStore(
|
||||
rootReducer,
|
||||
applyMiddleware(sagaMiddleware)
|
||||
);
|
||||
sagaMiddleware.run(rootSaga);
|
||||
return store;
|
||||
};
|
Reference in New Issue
Block a user