Skip to content

Simple app to demonstate the difference between Anchor tags and Next Link components when using the download attribute

Notifications You must be signed in to change notification settings

norra222/next-link-download

Repository files navigation

Next.js <a> vs <Link>

A simple web page to demonstrate the apparent differences between <a> tags and next.js <Link> components.

Setup project locally by cloning repo and running

npm run dev

Then navigate to [http://localhost:3000/]

The first download link uses <a> tags. This download the wave image to local storage.

The second download link uses <Link>. This navigates to the wave image instead of downloading it.

Try them both out to see difference in behaviours.

About

Simple app to demonstate the difference between Anchor tags and Next Link components when using the download attribute

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published