Spaces:
Running
Running
File size: 401 Bytes
e8a57cb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | // Intentionally not using a relative path to take advantage of
// the TS version resolution mechanism
import * as preact from 'preact';
export function createRoot(container: preact.ContainerNode): {
render(children: preact.ComponentChild): void;
unmount(): void;
};
export function hydrateRoot(
container: preact.ContainerNode,
children: preact.ComponentChild
): ReturnType<typeof createRoot>;
|