Skip to content

Add onError to handle placeholder image #7

@grevzi

Description

@grevzi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions