diff --git a/errors/link-no-children.md b/errors/link-no-children.md index 103018f1f80e0..48fd21c803289 100644 --- a/errors/link-no-children.md +++ b/errors/link-no-children.md @@ -11,9 +11,11 @@ import Link from 'next/link' export default function Home() { return ( - <Link href="/about"></Link> - // or - <Link href='/about' /> + <> + <Link href="/about" legacyBehavior></Link> + // or + <Link href="/about" legacyBehavior /> + </> ) } ``` @@ -27,9 +29,13 @@ import Link from 'next/link' export default function Home() { return ( - <Link href="/about"> - <a>To About</a> - </Link> + <> + <Link href="/about">To About</Link> + // or + <Link href="/about" legacyBehavior> + <a>To About</a> + </Link> + </> ) } ```