An infinite scroll mixin for React