microsite
Version:
<br /> <br />
9 lines (8 loc) • 380 B
TypeScript
import { FunctionComponent, VNode } from "preact";
export declare const HydrateContext: import("preact").Context<string | false>;
export interface HydrationProps {
displayName?: string;
method?: "idle" | "visible";
fallback?: VNode<any> | null;
}
export declare function withHydrate<T extends FunctionComponent<any>>(Component: T, hydrationProps?: HydrationProps): T;