Hi, on my webpage there are few images which are giving this response when going directly to the image link. I am using react in the frontend. Is it possible to check before loading these type of images that if there is no proper image at the location, load a not found image or 404 image. There are many ways which enable us to show 404 image if there is nothing at the link. But here I am getting something at the link but the webpage is not able to render this because its not in the correct format or whatever is the reason. Is there any way to handle this in react?
Thanks

onErrorevent - github.com/gokcan/react-shimmer or look at the source code. I Imagine you would have to something similar as theloadImagemethod github.com/gokcan/react-shimmer/blob/master/src/web/index.js