-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.tsx
More file actions
40 lines (33 loc) · 1.1 KB
/
main.tsx
File metadata and controls
40 lines (33 loc) · 1.1 KB
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
39
40
// //import { StrictMode } from 'react'
// import { createRoot } from "react-dom/client";
// import "./src/app/style/index.css";
// import App from "./src/app/App.tsx";
// import { BrowserRouter } from "react-router-dom";
// import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
// const queryClient = new QueryClient();
// createRoot(document.getElementById("root")!).render(
// //<StrictMode>
// <BrowserRouter>
// <App />
// </BrowserRouter>
// //</StrictMode>,
// );
import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import App from "./src/app/App.tsx";
import "./app/style/index.css";
const queryClient = new QueryClient();
const rootElement = document.getElementById("root");
if (rootElement) {
ReactDOM.createRoot(rootElement).render(
<React.StrictMode>
<QueryClientProvider client={queryClient}>
<BrowserRouter>
<App />
</BrowserRouter>
</QueryClientProvider>
</React.StrictMode>
);
}