2022-10-30 22:46:53 +00:00
|
|
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
2022-10-28 16:10:30 +00:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom/client';
|
|
|
|
import { createBrowserRouter, RouterProvider } from 'react-router-dom';
|
|
|
|
import './index.css';
|
|
|
|
import { Index } from './pages';
|
|
|
|
|
|
|
|
const router = createBrowserRouter([
|
|
|
|
{
|
|
|
|
path: "/",
|
|
|
|
element: <Index/>
|
|
|
|
},
|
|
|
|
]);
|
|
|
|
|
2022-10-30 22:46:53 +00:00
|
|
|
const queryClient = new QueryClient();
|
|
|
|
|
2022-10-28 16:10:30 +00:00
|
|
|
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
|
|
|
<React.StrictMode>
|
2022-10-30 22:46:53 +00:00
|
|
|
<QueryClientProvider client={queryClient}>
|
|
|
|
<RouterProvider router={router} />
|
|
|
|
</QueryClientProvider>
|
2022-10-28 16:10:30 +00:00
|
|
|
</React.StrictMode>
|
|
|
|
)
|