An example of an implementation of infinite scroll in ReactJS