react-lazyable
Version:
use react suspense and lazy api to async loading component, support antd component
15 lines (14 loc) • 455 B
TypeScript
export declare function LazyLoading({ delay, children }: {
delay?: number | boolean;
children?: any;
}): any;
export { lazyload as loadable };
export default function lazyload({ loader, loading, delay, export: exportDefault, statics, identifier, forwardRef }: {
loader: () => Promise<any>;
loading?: any;
delay?: number;
export?: any;
statics?: string;
identifier?: string;
forwardRef?: boolean;
}): any;