Building a Scrollspy and more using React and IntersectionObserver API
What is an IntersectionObserver ?
An IntersectionObserver is a utility in the native browser APIs which lets us check whether an element has intersected the viewport or any other ancestor.
I came across this while I was trying to build a scroll spy,...
blog.saiyerniakhil.in5 min read