docs: fix wrong code sample in docusaurus-core (#5881)

This commit is contained in:
Matthijs Groen 2021-11-05 15:57:59 +01:00 committed by GitHub
parent 9c086d4a78
commit 0aba31de7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,9 +182,9 @@ const MyComponent = () => {
return (
// highlight-start
<BrowserOnly>
{() => {
{() => (
<span>page url = {window.location.href}</span>;
}}
)}
</BrowserOnly>
// highlight-end
);