Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onError to handle placeholder image #7

Open
grevzi opened this issue Mar 20, 2024 · 0 comments
Open

Add onError to handle placeholder image #7

grevzi opened this issue Mar 20, 2024 · 0 comments

Comments

@grevzi
Copy link

grevzi commented Mar 20, 2024

Could you please add onError for the <Img component on the same way as it done for the next image

<Img 
   {...otherProps}
   onError={(e) => console.error(e.target.id)}
/>

It will give a cool feature to show the placeholder image instead of broken image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant