client.tsx
403 B · sha256:41f6da607035c16be7c6e1eb055a48b82b2732afaef2b951895054073a10f714
/** @jsxImportSource react */
import { hydrateRoot } from "react-dom/client";
import { Overview, type OverviewData } from "./overview.tsx";
const container = document.getElementById("overview");
const state = document.getElementById("overview-state")?.textContent;
if (container && state) {
const initial: OverviewData = JSON.parse(state);
hydrateRoot(container, <Overview initial={initial} />);
}