mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This prop is a no-op in app router. This removes the code that handled it for the App Router link, and adds a warning for apps that are attempting to use it in an app router context.
15 lines
231 B
JavaScript
15 lines
231 B
JavaScript
import Link from 'next/link'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<>
|
|
<Link href="/about" locale="en">
|
|
Link 1
|
|
</Link>
|
|
<Link href="/about" locale="fr">
|
|
Link 2
|
|
</Link>
|
|
</>
|
|
)
|
|
}
|