Skip to main content
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.3.0/mod.tsx";

Used to hydrate the app in the browser. Hydration isn't required if you want to do server side rendering only. This function will turn the application into an SPA.

If you are using the default configuration, this will load the route generated from your application's routes.

import { hydrate } from "x/udibo_react_app/app.tsx";

import route from "./routes/_main.tsx";

hydrate({ route });

You can optionally add a Provider argument to add your own providers around the application.

Type Parameters

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