lndsld

Home > @lndsld/react-hooks > useScroll

useScroll() function

Subscribe to scroll events

Signature:

declare function useScroll(handler: EventCallback<[Event]>, options?: UseScrollOptions): void;

Parameters

Parameter Type Description
handler EventCallback<[Event]>  
options UseScrollOptions (Optional)

Returns:

void