How To Disable Next Link

Posted on 12/16/2023

<Link href={`/page/some-page`} onClick={(event) => event.preventDefault()} className="some-class">
  Previous
</Link>

Sources:

Created with ❤️ using Next.js & Tailwind CSS