Last active
January 20, 2021 16:27
-
-
Save tolumide-ng/f4ec68ebdd45a0e3bcc74d8db4d77006 to your computer and use it in GitHub Desktop.
Revisions
-
tolumide-ng revised this gist
Jan 20, 2021 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,6 @@ interface entryDef { } interface IntersectionObserverDef { ancestorElem?: Element, } -
tolumide-ng created this gist
Jan 20, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ import * as React from "react"; interface entryDef { isIntersecting: Boolean; intersectionRatio: number; } interface IntersectionObserverDef { targetElem?: Element, ancestorElem?: Element, } export const useIntersectionObserver = (props: IntersectionObserverDef) => {}