Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

39 rader
1.2 KiB

  1. import { StrictMode } from 'react';
  2. import { createRoot } from 'react-dom/client';
  3. import { BrowserRouter } from 'react-router-dom';
  4. // scroll bar
  5. import 'simplebar/src/simplebar.css';
  6. // third-party
  7. import { Provider as ReduxProvider } from 'react-redux';
  8. // apex-chart
  9. import 'assets/third-party/apex-chart.css';
  10. // project import
  11. import App from './App';
  12. import { store } from 'store';
  13. import reportWebVitals from './reportWebVitals';
  14. // ==============================|| MAIN - REACT DOM RENDER ||============================== //
  15. const container = document.getElementById('root');
  16. const root = createRoot(container); // createRoot(container!) if you use TypeScript
  17. //const NotAuthorized = lazy(() => import('../views/NotAuthorized'))
  18. //const Error = lazy(() => import('../views/Error'))
  19. root.render(
  20. <StrictMode>
  21. <ReduxProvider store={store}>
  22. <BrowserRouter basename="/">
  23. <App />
  24. </BrowserRouter>
  25. </ReduxProvider>
  26. </StrictMode>
  27. );
  28. // If you want to start measuring performance in your app, pass a function
  29. // to log results (for example: reportWebVitals(console.log))
  30. // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
  31. reportWebVitals();