I have made a custom hook from scratch for implementing infinite scroll using debounce and throttling.
Check out this Medium article
Use the npm or yarn to inatall
npm install
npm start
or visit this Code Sandbox
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.