index.js 686 B

1234567891011121314151617181920212223
  1. import React from 'react';
  2. import { createRoot } from 'react-dom/client';
  3. import { Provider } from 'react-redux';
  4. import { store } from './app/store';
  5. import App from './App';
  6. import reportWebVitals from './reportWebVitals';
  7. import './index.css';
  8. const container = document.getElementById('root');
  9. const root = createRoot(container);
  10. root.render(
  11. <React.StrictMode>
  12. <Provider store={store}>
  13. <App />
  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();