Last active
January 27, 2020 20:11
-
-
Save ozcanzaferayan/38a4984c28298990ba91be00166e450b to your computer and use it in GitHub Desktop.
store directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, applyMiddleware } from 'redux'; | |
import rootReducer from 'reducers'; | |
import logger from 'redux-logger'; | |
import createSagaMiddleware from 'redux-saga'; | |
import rootSaga from 'sagas'; | |
const sagaMiddleware = createSagaMiddleware(); | |
sagaMiddleware.run(rootSaga); | |
export const store = createStore(rootReducer, applyMiddleware(sagaMiddleware, logger)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "store", | |
"version": "0.0.1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment