HTML:
<div className={classes.StoryContentSection}>
Content...
</div>
CSS:
.StoryContentSection {
overflow-y: auto;
height: 523px;
}
The Content inside the div section is dynamic. How to detect the end of the scroll position so that the API call happens once it reaches the end and append it to the previous content similar to the demo example in https://www.npmjs.com/package/react-infinite-scroller ?But in the example it is happening for window scroll, which is not what I need. It should happen only for the div scroll.