From d167ecce47dee9105f1a8a797bc356ab1ce9e47b Mon Sep 17 00:00:00 2001 From: Oskar Oldorf Date: Wed, 1 Mar 2023 11:01:04 +0100 Subject: [PATCH] Documentation: Update link-no-children error page for new link (#46514) The example still has an `` inside the `` which was deprecated with next 13. Current page: https://nextjs.org/docs/messages/link-no-children ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm build && pnpm lint` - [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) --------- Co-authored-by: JJ Kasper Co-authored-by: Tim Neutkens --- errors/link-no-children.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/errors/link-no-children.md b/errors/link-no-children.md index 103018f1f8..48fd21c803 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 ( - - // or - + <> + + // or + + ) } ``` @@ -27,9 +29,13 @@ import Link from 'next/link' export default function Home() { return ( - - To About - + <> + To About + // or + + To About + + ) } ```