civiccc / react-waypoint

A React component to execute a function whenever you scroll to an element.
MIT License
4.08k stars 208 forks source link

[Question] What's the differences with react-intersection-observer? #318

Closed kud closed 5 years ago

kud commented 5 years ago

https://github.com/thebuilder/react-intersection-observer

lencioni commented 5 years ago

They aim to do roughly the same thing. react-waypoint will use scroll event listeners and react-intersection-observer will use IntersectionObserver. For performance reasons, I'd highly recommend using IntersecionObserver wherever possible.

kud commented 5 years ago

Yeah me too, that's why I asked this.

Thank you very much!