From 0aba31de7b2972bb3abcf30d57e3cf401a34ca44 Mon Sep 17 00:00:00 2001 From: Matthijs Groen Date: Fri, 5 Nov 2021 15:57:59 +0100 Subject: [PATCH] docs: fix wrong code sample in docusaurus-core (#5881) --- website/docs/docusaurus-core.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/docusaurus-core.md b/website/docs/docusaurus-core.md index 46c1d5ac6f9c..aca6474ec882 100644 --- a/website/docs/docusaurus-core.md +++ b/website/docs/docusaurus-core.md @@ -182,9 +182,9 @@ const MyComponent = () => { return ( // highlight-start - {() => { + {() => ( page url = {window.location.href}; - }} + )} // highlight-end );