The Intersection Observer Hook That Actually Handles Conditional Rendering
Every Intersection Observer tutorial on the internet has the same bug. They just don't know it yet.
The pattern goes like this: create a ref, attach it to your element, set up an IntersectionObserver
aviralsharma.hashnode.dev5 min read