mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 20:37:46 +00:00
13 lines
327 B
TypeScript
13 lines
327 B
TypeScript
import { StartClient } from "@tanstack/start";
|
|
import { hydrateRoot } from "react-dom/client";
|
|
import { createRouter } from "./router";
|
|
|
|
const router = createRouter();
|
|
|
|
const root = document.getElementById("root");
|
|
if (!root) {
|
|
throw new Error("Root element not found");
|
|
}
|
|
|
|
hydrateRoot(root, <StartClient router={router} />);
|