@ivliu/react-offscreen
Version:
 
23 lines (22 loc) • 500 B
TypeScript
import type { FC } from "react";
import type { IProps } from "./type";
/**
*
* @param {IProps} props
* @description This is a component that keeps its state while hiding it
* @example
* when visible
* <Activity mode="visible">
* <Child />
* </Activity>
* when hidden
* <Activity mode="hidden">
* <Child />
* </Activity>
*/
export declare const Activity: FC<IProps>;
/**
* @deprecated
* @description please rename Offscreen to Activity
*/
export declare const Offscreen: FC<IProps>;