for the first time, I made a react library to handle infinite scroll for window and element. the package works with no problem when I create a react app and install the package on it. but in code sandbox when I add the package to the dependencies, it goes blank and shows nothing till I remove the package
here is the package: https://www.npmjs.com/package/react-snp-infinite-scroller
here is a project that used it with no problem:
source: https://github.com/rezaerami/react-snp-infinite-scroller-docs
demo: https://rezaerami.github.io/docs-react-snp-infinite-scroller/
here is a sample code sandbox react application with no changes only added the package to dependencies: