I can’t hide image broken icon. If I display none, it will not display my css.
<img
className="card__image"
src={image ? image : ""}
alt={name || ""}
/>
I want to remove just broken icon without touching css
example
2
Answers
This approach worked for me. Thank you, I just figured it out.
There are several ways are existsing to hide elems in css instead
display: none
Use:
opacity: 0;
to make elem disappear but it remains to be interactiveOr use:
visibility: hidden
to hide that.