Skip to content

Instantly share code, notes, and snippets.

@tolumide-ng
Last active January 20, 2021 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tolumide-ng/f4ec68ebdd45a0e3bcc74d8db4d77006 to your computer and use it in GitHub Desktop.
Save tolumide-ng/f4ec68ebdd45a0e3bcc74d8db4d77006 to your computer and use it in GitHub Desktop.
import * as React from "react";
interface entryDef {
isIntersecting: Boolean;
intersectionRatio: number;
}
interface IntersectionObserverDef {
ancestorElem?: Element,
}
export const useIntersectionObserver = (props: IntersectionObserverDef) => {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment