szuntis-frontend/app/client.tsx
2024-09-02 20:22:58 +02:00

8 lines
249 B
TypeScript

import { hydrateRoot } from "react-dom/client";
import { StartClient } from "@tanstack/start";
import { createRouter } from "./router";
const router = createRouter();
hydrateRoot(document.getElementById("root")!, <StartClient router={router} />);