UNPKG

514 BTypeScriptView Raw
1import * as React from 'react';
2declare type State = {
3 portals: Array<{
4 key: number;
5 children: React.ReactNode;
6 }>;
7};
8/**
9 * Portal host is the component which actually renders all Portals.
10 */
11export default class PortalManager extends React.PureComponent<{}, State> {
12 state: State;
13 mount: (key: number, children: React.ReactNode) => void;
14 update: (key: number, children: React.ReactNode) => void;
15 unmount: (key: number) => void;
16 render(): JSX.Element[];
17}
18export {};