site/node_modules/preact/compat/client.d.ts
2024-10-14 08:09:33 +02:00

12 lines
286 B
TypeScript

import * as preact from '../src';
export function createRoot(container: preact.ContainerNode): {
render(children: preact.ComponentChild): void;
unmount(): void;
};
export function hydrateRoot(
container: preact.ContainerNode,
children: preact.ComponentChild
): typeof createRoot;