Can someone explain to me the difference between using passHref and using an anchor tag when setting up links between pages in Next.js?
E.g. what is the difference between:
<Link href={`/posts/${post.id}`} passHref>
<h2>
{post.id} {post.title}
</h2>
</Link>
and
<Link href={`/posts/${post.id}`}>
<a>
{post.id} {post.title}
</a>
</Link>
I tried reading about it in the documentation but could not seem to find the answer.