Repository URL to install this package:
|
Version:
2.8.0-studio-release ▾
|
import React from 'react';
import { PortalProps } from './typings';
/**
* @api https://reactjs.org/docs/portals.html
*/
declare class Portal extends React.PureComponent<PortalProps> {
isComponentMounted: boolean;
defaultNode: HTMLElement | undefined;
componentWillUnmount(): void;
/**
* @see https://reactjs.org/docs/reconciliation.html
*/
componentDidMount(): void;
/**
* @deprecated
* @todo remove this, we can access using props...
*/
readonly className: string;
/**
* @todo reduce reading & writing from the DOM here, bad @@perf
*/
render(): import("react-router/node_modules/@types/react").ReactPortal | null;
}
export { Portal };
export default Portal;