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.
I have this code
import LazyLoad from 'react-lazyload';import LazyImg from "../../assets/img/lazyload.png";
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.
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 `