diff --git a/website/docs/docusaurus-core.md b/website/docs/docusaurus-core.md index aca6474ec882..ab146688cf70 100644 --- a/website/docs/docusaurus-core.md +++ b/website/docs/docusaurus-core.md @@ -182,9 +182,7 @@ const MyComponent = () => { return ( // highlight-start - {() => ( - page url = {window.location.href}; - )} + {() => page url = {window.location.href}} // highlight-end ); diff --git a/website/versioned_docs/version-2.0.0-beta.8/docusaurus-core.md b/website/versioned_docs/version-2.0.0-beta.8/docusaurus-core.md index eb456c6a07cf..80f9b56dc565 100644 --- a/website/versioned_docs/version-2.0.0-beta.8/docusaurus-core.md +++ b/website/versioned_docs/version-2.0.0-beta.8/docusaurus-core.md @@ -133,9 +133,7 @@ const MyComponent = () => { return ( // highlight-start - {() => { - page url = {window.location.href}; - }} + {() => page url = {window.location.href}} // highlight-end ); diff --git a/website/versioned_docs/version-2.0.0-beta.9/docusaurus-core.md b/website/versioned_docs/version-2.0.0-beta.9/docusaurus-core.md index eb456c6a07cf..80f9b56dc565 100644 --- a/website/versioned_docs/version-2.0.0-beta.9/docusaurus-core.md +++ b/website/versioned_docs/version-2.0.0-beta.9/docusaurus-core.md @@ -133,9 +133,7 @@ const MyComponent = () => { return ( // highlight-start - {() => { - page url = {window.location.href}; - }} + {() => page url = {window.location.href}} // highlight-end );