mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 12:47:14 +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';
|
import BrowserOnly from '@docusaurus/BrowserOnly';
|
||||||
|
|
||||||
function MyComponent() {
|
function MyComponent() {
|
||||||
return <BrowserOnly>
|
return (
|
||||||
|
<BrowserOnly>
|
||||||
{() => {
|
{() => {
|
||||||
// Something that should be excluded during build process prerendering.
|
// Something that should be excluded during build process prerendering.
|
||||||
}}
|
}}
|
||||||
</BrowserOnly>;
|
</BrowserOnly>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -121,11 +121,13 @@ The `<BrowserOnly>` component accepts a `children` prop, a render function which
|
||||||
import BrowserOnly from '@docusaurus/BrowserOnly';
|
import BrowserOnly from '@docusaurus/BrowserOnly';
|
||||||
|
|
||||||
function MyComponent() {
|
function MyComponent() {
|
||||||
return <BrowserOnly>
|
return (
|
||||||
|
<BrowserOnly>
|
||||||
{() => {
|
{() => {
|
||||||
// Something that should be excluded during build process prerendering.
|
// Something that should be excluded during build process prerendering.
|
||||||
}}
|
}}
|
||||||
</BrowserOnly>;
|
</BrowserOnly>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue