mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
docs: fix wrong code sample in docusaurus-core (#5881)
This commit is contained in:
parent
9c086d4a78
commit
0aba31de7b
1 changed files with 2 additions and 2 deletions
|
@ -182,9 +182,9 @@ const MyComponent = () => {
|
||||||
return (
|
return (
|
||||||
// highlight-start
|
// highlight-start
|
||||||
<BrowserOnly>
|
<BrowserOnly>
|
||||||
{() => {
|
{() => (
|
||||||
<span>page url = {window.location.href}</span>;
|
<span>page url = {window.location.href}</span>;
|
||||||
}}
|
)}
|
||||||
</BrowserOnly>
|
</BrowserOnly>
|
||||||
// highlight-end
|
// highlight-end
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue