Skip to content

Commit

Permalink
docs(v2): add router implementation note (#2935)
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewbi authored Jun 15, 2020
1 parent 1fdc8c5 commit c341f45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions website/docs/docusaurus-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ function Home() {
}
```

:::note

`@docusaurus/router` implements [React Router](https://reacttraining.com/react-router/web/guides/quick-start) and supports its features.

:::

### `<BrowserOnly/>`

The `<BrowserOnly>` component accepts a `children` prop, a render function which will not be executed during the pre-rendering phase of the build process. This is useful for hiding code that is only meant to run in the browsers (e.g. where the `window`/`document` objects are being accessed). To improve SEO, you can also provide fallback content using the `fallback` prop, which will be prerendered until in the build process and replaced with the client-side only contents when viewed in the browser.
Expand Down

0 comments on commit c341f45

Please sign in to comment.