twobin / twobin/react-lazyload

How to show image as placeholder

Open
#327 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
485
PR merge metrics
No merged PRs in 30d

Description

I am trying to just an image as a placeholder, but instead of showing my image, it just shows a bunch of characters (the data of the image, maybe?) Do you have some sample code I can use cause I'm not doing this right. I also tried to access the image directly, which also didn't work.
![placeholder-problem](https://user-images.githubusercontent.com/40670609/95696975-da7c9e00-0c02-11eb-8c5f-528166e16752.jpg)

I have this code

`import LazyLoad from 'react-lazyload';`
`import LazyImg from "../../assets/img/lazyload.png";`

I am trying to lazy load a card image
`
`
``
``

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.