Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/udibo_react_app/app.tsx>hydrate

A React Framework for Deno
Go to Latest
function hydrate
import { hydrate } from "https://deno.land/x/udibo_react_app@0.1.1/app.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.