import React from "react" ; import ReactDOM from "react-dom" ; import { createStore , applyMiddleware } from "redux" ; import { Provider } from "react-redux" ; import createSagaMiddleware from "redux-saga" ; import { AppContainer } from "./containers/AppContainer" ; import reducer from "./reducers" ; import { rootSaga } from "./sagas" ; import "./index.css" ; const sagaMiddleware = createSagaMiddleware ( ) ; const store = createStore ( reducer , applyMiddleware ( sagaMiddleware ) ) ; sagaMiddleware . run ( rootSaga ) ; ReactDOM . render ( < React . StrictMode > < Provider store = { store } > < AppContainer /> < /Provider> , < /React.StrictMode>, document.getElementById("root"));