Answers for "next link next js"

35

next js link

import Link from "next/link";   //import this
     
<Link href="/">    //wrap a tag with Link
     <a>Home</a>
</Link>

<Link href="https://nextjs.org">   //external page
      <a>Next.js</a>
 </Link>
Posted by: Guest on June-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language