mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-29 05:12:52 +00: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
|
|
@ -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…
Reference in New Issue