preact
Version:
Fast 4kb React-compatible Virtual DOM library.
12 lines (9 loc) • 304 B
TypeScript
import * as preact from '../src/index';
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>;