Reputation: 342
this should make a clickable image but apparently the hyperlink is showing next to the image.
<div>
<a href = {link}><img src= {image} alt= 'icon' />{link}</a>
</div>
Upvotes: 2
Views: 3486
Reputation: 15821
Simply remove {link} after the image tag:
<div>
<a href = {link}>
<img src= {image} alt= 'icon' />
</a>
</div>
Upvotes: 5