text: import React from "react";
  import ReactDOM from 'react-dom';
  import { Provider } from 'react-redux';
  import { applyMiddleware, compose, createStore } from "redux";
  import thunk from "redux-thunk";
  import { persistReducer, persistStore } from "redux-persist";
  import storage from 'redux-persist/lib/storage';
  import { PersistGate } from "redux-persist/integration/react";
  
  import App from './components/App';
  import reducers from './reducers';
  
  const persistConfig = {
      key: 'root',
      storage,
  };
  
  const persistedReducer = persistReducer(persistConfig, reducers);
  
  const composeEnhances = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
  
  const store  = createStore(persistedReducer, {}, composeEnhances(applyMiddleware(thunk)));
  const persistor = persistStore(store);
  
  ReactDOM.render(
      <Provider store={store}>
          <PersistGate loading={null} persistor={persistor}>
              <App/>
          </PersistGate>
      </Provider>,
      document.getElementById('root'));