react-lazy-images icon indicating copy to clipboard operation
react-lazy-images copied to clipboard

Load before swap loses effect if placeholder image is rendered inside a container

Open foubei opened this issue 5 years ago • 0 comments

Hello, thank you for your precious work, amazing react component.

Here I am facing an issue if the placehoder is rendered inside a container, for example:

placeholder={({ ref }) => (
  <div className="placeholder">
       <img ref={ref} src={placeholderSrc} />
   </div>
)}

Please let me if I am missing something on my code.

foubei avatar Jun 27 '19 12:06 foubei