Unverified Commit 5526ea50 authored by j0hnta's avatar j0hnta Committed by GitHub

Update invalid-new-link-with-extra-anchor.md (#50036)

Fix typo
parent f9f0f335
...@@ -12,7 +12,7 @@ Run the `new-link` codemod to automatically upgrade previous versions of Next.js ...@@ -12,7 +12,7 @@ Run the `new-link` codemod to automatically upgrade previous versions of Next.js
npx @next/codemod new-link . npx @next/codemod new-link .
``` ```
This will change `<Link><a id="link">Home<a></Link>` to `<Link id="link">Home</Link>`. This will change `<Link><a id="link">Home</a></Link>` to `<Link id="link">Home</Link>`.
Alternatively, you can add the `legacyBehavior` prop `<Link legacyBehavior><a id="link">Home</a></Link>`. Alternatively, you can add the `legacyBehavior` prop `<Link legacyBehavior><a id="link">Home</a></Link>`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment