Aljullu / react-lazy-load-image-component

React Component to lazy load images and components using a HOC to track window scroll position.
https://www.npmjs.com/package/react-lazy-load-image-component
MIT License
1.44k stars 109 forks source link

Issue with lazy load component, ssr #125

Open parth391 opened 1 year ago

parth391 commented 1 year ago

Bug description Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

To Reproduce

import * as LazyLoad from 'react-lazy-load-image-component';

<LazyLoad.LazyLoadComponent>
    <MyComponent
        ...
    />
</LazyLoad.LazyLoadComponent>

Technical details: