index.js 735 B

12345678910111213141516171819202122
  1. import React from 'react';
  2. import ReactDOM from 'react-dom/client';
  3. import './index.css';
  4. import reportWebVitals from './reportWebVitals';
  5. import { RouterProvider } from 'react-router-dom';
  6. import router from './router';
  7. import { Provider } from 'react-redux';
  8. import store from './store';
  9. const root = ReactDOM.createRoot(document.getElementById('root'));
  10. root.render(
  11. <React.StrictMode>
  12. <Provider store={store}>
  13. <RouterProvider router={router} />
  14. </Provider>
  15. </React.StrictMode>
  16. );
  17. // If you want to start measuring performance in your app, pass a function
  18. // to log results (for example: reportWebVitals(console.log))
  19. // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
  20. reportWebVitals();