Skip to content

Commit

Permalink
Update invalid-new-link-with-extra-anchor.md (#50036)
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
johnta0 committed May 21, 2023
1 parent f9f0f33 commit 5526ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors/invalid-new-link-with-extra-anchor.md
Expand Up @@ -12,7 +12,7 @@ Run the `new-link` codemod to automatically upgrade previous versions of Next.js
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>`.

Expand Down

0 comments on commit 5526ea5

Please sign in to comment.