mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 23:40:39 +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 (
|
||||
// highlight-start
|
||||
<BrowserOnly>
|
||||
{() => {
|
||||
{() => (
|
||||
<span>page url = {window.location.href}</span>;
|
||||
}}
|
||||
)}
|
||||
</BrowserOnly>
|
||||
// highlight-end
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue