Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/udibo_react_app/mod.tsx>hydrate

A React Framework for Deno that makes it easy to create highly interactive apps that have server side rendering with file based routing for both your UI and API.
Go to Latest
function hydrate
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.

Type Parameters

optional
AppContext extends Record<string, unknown> = Record<string, unknown>

Parameters

unnamed 0: HydrateOptions<AppContext>