index.tsx 597 B

123456789101112131415161718192021
  1. import React from 'react';
  2. import { Provider } from 'react-redux';
  3. import { PersistGate } from 'redux-persist/integration/react';
  4. import ReactDOM from 'react-dom';
  5. import 'react-toastify/dist/ReactToastify.css';
  6. import 'modern-normalize/modern-normalize.css';
  7. import './index.css';
  8. import App from './App';
  9. import { store, persistor } from './redux/store';
  10. ReactDOM.render(
  11. <React.StrictMode>
  12. <PersistGate loading={null} persistor={persistor}>
  13. <Provider store={store}>
  14. <App />
  15. </Provider>
  16. </PersistGate>
  17. </React.StrictMode>,
  18. document.getElementById('root'),
  19. );