react-solid-flow
Version:
[SolidJS](https://www.solidjs.com/docs/latest/api#control-flow)-inspired basic control-flow components and everyday async state hook library for [React](https://reactjs.org/)
9 lines (8 loc) • 332 B
TypeScript
import { ReactNode, ReactPortal } from "react";
interface PortalProps {
mount?: Element | DocumentFragment | string;
children?: ReactNode;
}
/** Component for rendering children outside of the Component Hierarchy root node. */
export declare function Portal({ mount, ...props }: PortalProps): ReactPortal | null;
export {};