react-scroll-to
Version:
Scroll to a position using react
12 lines (11 loc) • 354 B
TypeScript
/// <reference types="react" />
/**
* Higher Order Component version of the ScrollTo.
* Injects a prop named scroll that is a function that
* takes an (x, y) coordinate to scroll to. [ie. props.scrollTo(0, 500)]
*/
declare function ScrollToHOC(Component: any): {
(props: any): JSX.Element;
displayName: string;
};
export default ScrollToHOC;