mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-03 12:17:20 +02:00
docs(v2): fix formatting
This commit is contained in:
parent
18d31b5f5f
commit
4956d1ec81
2 changed files with 14 additions and 10 deletions
|
@ -121,11 +121,13 @@ The `<BrowserOnly>` component accepts a `children` prop, a render function which
|
|||
import BrowserOnly from '@docusaurus/BrowserOnly';
|
||||
|
||||
function MyComponent() {
|
||||
return <BrowserOnly>
|
||||
{() => {
|
||||
// Something that should be excluded during build process prerendering.
|
||||
}}
|
||||
</BrowserOnly>;
|
||||
return (
|
||||
<BrowserOnly>
|
||||
{() => {
|
||||
// Something that should be excluded during build process prerendering.
|
||||
}}
|
||||
</BrowserOnly>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -121,11 +121,13 @@ The `<BrowserOnly>` component accepts a `children` prop, a render function which
|
|||
import BrowserOnly from '@docusaurus/BrowserOnly';
|
||||
|
||||
function MyComponent() {
|
||||
return <BrowserOnly>
|
||||
{() => {
|
||||
// Something that should be excluded during build process prerendering.
|
||||
}}
|
||||
</BrowserOnly>;
|
||||
return (
|
||||
<BrowserOnly>
|
||||
{() => {
|
||||
// Something that should be excluded during build process prerendering.
|
||||
}}
|
||||
</BrowserOnly>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue