docs(v2): fix formatting

This commit is contained in:
Alexey Pyltsyn 2020-04-02 12:07:50 +03:00
parent 18d31b5f5f
commit 4956d1ec81
2 changed files with 14 additions and 10 deletions

View file

@ -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>
);
} }
``` ```

View file

@ -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>
);
} }
``` ```