mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-24 08:01:56 -05: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} />);
|