snippet
How to use link with Next.js
import Link from "next/link";
<Link href="/my-page">
<a>My Page</a>
</Link>
<Link href="https://nextjs.org">
<a>Next.js</a>
</Link>