Skip to content

Instantly share code, notes, and snippets.

Last active Oct 6, 2021
What would you like to do?
// store/index.js
import { createStore, applyMiddleware, compose } from "redux";
import createSagaMiddleware from "redux-saga";
import rootReducer from "./reducers";
import rootSaga from "./sagas";
const sagaMiddleware = createSagaMiddleware();
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(
export default store;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment