Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Examples: Delete as prop from <Link> components (vercel#27359)
Browse files Browse the repository at this point in the history
`as` prop is no longer required on `next/link` components for dynamic routes
  • Loading branch information
cobrexus authored Jul 20, 2021
1 parent e497964 commit 129c552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/dynamic-routing/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ const Header = () => (
</Link>
</li>
<li>
<Link href="/post/[id]" as="/post/first">
<Link href="/post/first">
<a>First Post</a>
</Link>
</li>
<li>
<Link href="/post/[id]" as="/post/second">
<Link href="/post/second">
<a>Second Post</a>
</Link>
</li>
Expand Down

0 comments on commit 129c552

Please sign in to comment.