blob: 43e61c09f292a1cd38b7ab3841637fd357625323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import React from 'react';
import ReactDOM from 'react-dom/client';
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import { Provider } from 'react-redux';
import setupStore from './store';
import AppThemeProvider from './AppThemeProvider';
import routes from './routes';
import './main.css';
const router = createBrowserRouter(routes);
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<Provider store={setupStore()}>
<AppThemeProvider>
<RouterProvider router={router} />
</AppThemeProvider>
</Provider>
</React.StrictMode>
);
|