useful-custom-react-hooks
Version:
A collection of useful custom React hooks to simplify common tasks and enhance your React applications.
13 lines (12 loc) • 375 B
TypeScript
/// <reference types="react" />
export declare const useIntersection: ({ root, rootMargin, threshold, once, }?: IUseIntersection) => {
isIntersecting: boolean;
ref: import("react").MutableRefObject<HTMLDivElement | null>;
};
interface IUseIntersection {
root?: HTMLElement | null;
rootMargin?: string;
threshold?: number;
once?: boolean;
}
export {};