site/node_modules/preact/compat/client.d.ts

12 lines
286 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
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;