-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.jsx
38 lines (35 loc) · 927 Bytes
/
main.jsx
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
34
35
36
37
38
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App.jsx";
import "./index.css";
import { ChakraProvider, extendTheme } from "@chakra-ui/react";
import { RecoilRoot } from "recoil";
import buttonTheme from "./Chakra-ui/ButtonTheme.js";
import { QueryClient, QueryClientProvider } from "react-query";
const theme = extendTheme({
fonts: {
body: "Inter, sans-serif",
heading: "Inter, sans-serif",
},
components: {
Button: buttonTheme,
},
});
const queryClient = new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
},
},
});
ReactDOM.createRoot(document.getElementById("root")).render(
<React.StrictMode>
<QueryClientProvider client={queryClient}>
<RecoilRoot>
<ChakraProvider theme={theme}>
<App />
</ChakraProvider>
</RecoilRoot>
</QueryClientProvider>
</React.StrictMode>
);