stratiformltd / react-loadable-visibility

A wrapper around react-loadable and @loadable/component to load elements once they are visible on the page.
BSD 3-Clause "New" or "Revised" License
1.01k stars 31 forks source link

Undeclared dependency react-loadable #12

Closed leegee closed 6 years ago

leegee commented 6 years ago

Please add react-loadable to your package.json

tazsingh commented 6 years ago

Hi @leegee, it isn't a part of the package.json as this library also works with loadable-components and therefore does not have a hard dependency on either library. Users are expected to add either library to their own package.json before using this - https://github.com/stratiformltd/react-loadable-visibility#options