mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-20 10:08:17 +02:00
docs(core): fixing broken links in useIsBrowser
section's caveat explanation about "hydration completion" versus "is in the browser environment"
This commit is contained in:
parent
628995e14e
commit
47cc3e62e8
1 changed files with 2 additions and 2 deletions
|
@ -488,8 +488,8 @@ export default MyComponentParent;
|
|||
|
||||
There are a couple more alternative solutions to this problem. However all of them require adding checks in **the parent component**:
|
||||
|
||||
1. You can wrap `<MyComponent />` with [`BrowserOnly`](../docusaurus-core.mdx#browseronly)
|
||||
2. You can use `canUseDOM` from [`ExecutionEnvironment`](../docusaurus-core.mdx#executionenvironment) and `return null` when `canUseDOM` is `false`
|
||||
1. You can wrap `<MyComponent />` with [`BrowserOnly`](./docusaurus-core.mdx#browseronly)
|
||||
2. You can use `canUseDOM` from [`ExecutionEnvironment`](./docusaurus-core.mdx#executionenvironment) and `return null` when `canUseDOM` is `false`
|
||||
|
||||
### `useBaseUrl` {#useBaseUrl}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue