You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A function to be executed after the image is loaded
387
+
388
+
```jsx
389
+
<Img
390
+
src="dino-reichmuth-1.jpg"
391
+
onImgLoadError={({ event, setLoaded })=>{
392
+
setLoaded(true) // declares whether the image is loaded or not, if `true` - loaded - then assign the proper styles otherwise no need for the loaded styles (useful in-case u added a new src for the image throguh the fallback and want to apply the styles), by default setLoaded(false) is triggered in-case of failure.
0 commit comments