react-laze
Version:
Lazily render components in React
10 lines • 336 B
TypeScript
import type { MutableRefObject } from 'react';
export interface Laze<T extends HTMLElement> {
ref: MutableRefObject<T | null>;
visible: boolean;
}
export interface LazeOptions {
refresh?: boolean;
}
export default function useLaze<T extends HTMLElement>(options?: LazeOptions): Laze<T>;
//# sourceMappingURL=useLaze.d.ts.map