I have a component entirely linked in a <Link>
tag but I have inside an icon that I want clickable without activating the link. Is there a way to escape the icon?
<Link to={`/post/${id}`} className='flex flex-row px-3 py-2'>
<div>Some content</div>
<i onClick={anAction}>An Icon</i>
<div>Some content</div>
</Link>