😎 🖥️ React hook to monitor an element enters or leaves the viewport (or another element).
readonly
for the scrollDirection
return value.Readonly
utility.readonly
from the type of return values.Latest version.
💥 BREAKING CHANGE
ref
, please follow the example to migrate it.refs
for some reasons.