1

I'm very new to JavaScript and currently using JSX to design a website. I am hoping to add an infinite scroll component where the user scrolls to the bottom of a list of, say, 5 images, and then 5 more load, etc.

I have built my own rest API server and plan to implement my JS such that upon each user scroll to the bottom, it will call on this API to load the data for another 5 images; however, I am lost on how to best handle this scroll event by the user.

I am trying to find a tool/component that would help me implement this scroll that is already embedded in the standard React library. It is important that this is not something I have to install outside of the React library. I have read through tons of React documentation and S.O. posts, but have been unable to find one- could someone point me in the right direction?

user5482356
  • 463
  • 1
  • 6
  • 21

1 Answers1

0

This one should do the work react-infinite

Or native

Isak La Fleur
  • 3,632
  • 6
  • 27
  • 41
  • These are separate libraries that I would have to install with npm. I am restricting only to components/functions already within React itself (ie nothing that I have to do another npm install for) – user5482356 Oct 10 '17 at 01:13