Snippets

useDocumentEvent()

A React hook for performantly attaching event listeners to the document

useIntersectionObserver()

A React hook for detecting element visibility within a container

useValue()

A React hook for persisting non-stateful values