-
Notifications
You must be signed in to change notification settings - Fork 153
Expand file tree
/
Copy pathmain.jsx
More file actions
31 lines (29 loc) · 787 Bytes
/
main.jsx
File metadata and controls
31 lines (29 loc) · 787 Bytes
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
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import { BrowserRouter } from "react-router-dom";
import { worker } from "@uidotdev/react-query-api";
import { QueryClient, QueryClientProvider } from "react-query";
const client = new QueryClient();
new Promise((res) => setTimeout(res, 100))
.then(() =>
worker.start({
quiet: true,
onUnhandledRequest: "bypass",
})
)
.then(() => {
ReactDOM.render(
<React.StrictMode>
<QueryClientProvider>
<BrowserRouter>
<div className="container">
<App />
</div>
</BrowserRouter>
</QueryClientProvider>
</React.StrictMode>,
document.getElementById("root")
);
});