Lazy Loading and Visibility Detection with useIntersectionObserver Hook
Efficiently detect when an element enters or exits the viewport using the `IntersectionObserver` API wrapped in a custom React hook for lazy loading images or infinite scrolling.