diff --git a/src/App.tsx b/src/App.tsx deleted file mode 100644 index 4ab3f96..0000000 --- a/src/App.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import { useState } from "react"; -import viteLogo from "/vite.svg"; -import reactLogo from "./assets/react.svg"; -import "./App.css"; - -function App() { - const [count, setCount] = useState(0); - - return ( - <> -
-
- Edit src/App.tsx and save to test HMR
-
- Click on the Vite and React logos to learn more -
- > - ); -} - -export default App; diff --git a/src/app.tsx b/src/app.tsx new file mode 100644 index 0000000..279f6f0 --- /dev/null +++ b/src/app.tsx @@ -0,0 +1,14 @@ +import { RouterProvider, createRouter } from "@tanstack/react-router" +import { routeTree } from "./routeTree.gen" + +const router = createRouter({ routeTree }) + +declare module "@tanstack/react-router" { + interface Register { + router: typeof router + } +} + +export function App() { + return