server/assets/js/react/App.tsx

19 lines
487 B
TypeScript
Raw Normal View History

import * as React from "react"
import { RouterProvider } from "react-router-dom"
2023-12-04 20:35:01 +00:00
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
2023-12-01 19:56:14 +00:00
import { RootLayout } from "./components/RootLayout"
import { router } from "./router"
2023-12-04 20:35:01 +00:00
const queryClient = new QueryClient()
2023-12-01 19:56:14 +00:00
export default function App() {
return (
2023-12-04 20:35:01 +00:00
<QueryClientProvider client={queryClient}>
<RootLayout>
<RouterProvider router={router} />
</RootLayout>
</QueryClientProvider>
)
2023-12-01 19:56:14 +00:00
}