Pse është kaq e vështirë kjo?

<img
src={icon}
alt="site icon"
onError={(e) => {
  e.target.src = ImageLinkIcon
}}
/>