import { hydrate } from "https://deno.land/x/udibo_react_app@0.15.0/mod.tsx";
This function is used to hydrate the application in the browser. It turns the server rendered application into a single-page application (SPA). Hydration is not required if only server-side rendering is desired.
If the default configuration is used, this function will load the route generated from the application's routes.
import { hydrate } from "x/udibo_react_app/app.tsx";
import route from "./routes/_main.tsx";
hydrate({ route });
An optional Provider argument can be used to include customer providers around the application.
Parameters
unnamed 0: HydrateOptions<AppContext>