Detecting when scrollbar is at bottom in React/Reflux Component
|Added at||2016-05-07 03:05|
I have a React component that loads in data from an API and creates 20 smaller components using that data. I'm attempting to make another call to API to grab & load in 20 more items each time the user scrolls to the bottom of the main component. I've been trying to search SO, Google, and NPM for React/Reflux-friendly solution on accessing/detecting when the scrollbar is at the bottom (the user has scrolled to the very bottom of this component), but I can't seem to find anything. Every solution I've found seems to need access to the DOM, which seems to go against the fundamental React/Reflux architecture. Can anyone offer a solution to this issue? Thank you in advance.