Skip to content

Commit 91e0be1

Browse files
authored
Update no-html-link-for-pages.md (#45247)
Update no-html-link-for-pages.md based on the new link API https://nextjs.org/docs/api-reference/next/link
1 parent 7b40ffa commit 91e0be1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

errors/no-html-link-for-pages.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ import Link from 'next/link'
3232
function Home() {
3333
return (
3434
<div>
35-
<Link href="/about">
36-
<a>About Us</a>
37-
</Link>
35+
<Link href="/about">About Us</Link>
3836
</div>
3937
)
4038
}

0 commit comments

Comments
 (0)