-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tsx
33 lines (30 loc) · 984 Bytes
/
main.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import './reset.css';
import './index.css';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import ReactDOM from 'react-dom/client';
import { RecoilRoot } from 'recoil';
import App from './App';
import { worker } from './mocks/worker';
import { createTheme, ThemeProvider } from '@mui/material';
if (import.meta.env.DEV) {
worker.start();
}
const queryClient = new QueryClient();
const theme = createTheme({
typography: {
fontFamily: "'Jua', sans-serif",
},
});
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
// <React.StrictMode>
<ThemeProvider theme={theme}>
<RecoilRoot>
<QueryClientProvider client={queryClient}>
<App />
<ReactQueryDevtools initialIsOpen={false}></ReactQueryDevtools>
</QueryClientProvider>
</RecoilRoot>
</ThemeProvider>,
// </React.StrictMode>
);