Images not previewed

Posted at June 7, 2021 15 Views . 1 Saved .

Help please !

Images are not showing or preview on img tag when array map filtering

Rizwan Khan
In your thumbnail image i can see image path is not configured properly. if you are storing image locally in your system then preview your image with this method generatePublicUrl(item.productId.productPictures[0].img) or if you are storing image in amazon s3 bucket then it will give you a complete s3 image url that you can directly put within img src tag like this <img src={item.productId.productPictures[0].img} />