Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix admonition
  • Loading branch information
MatanBobi committed Apr 8, 2024
commit b59b730457faae6dfb0e0a7bf3dc45c296c07795
5 changes: 3 additions & 2 deletions docs/react-testing-library/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ your components.
### `legacyRoot`

:::warning

This option is only available when tests run with React 18 and earlier.

:::

By default we'll render with support for concurrent features (i.e.
Expand Down Expand Up @@ -344,7 +346,7 @@ function renderHook<
Props,
Q extends Queries = typeof queries,
Container extends Element | DocumentFragment = HTMLElement,
BaseElement extends Element | DocumentFragment = Container,
BaseElement extends Element | DocumentFragment = Container
>(
render: (initialProps: Props) => Result,
options?: RenderHookOptions<Props, Q, Container, BaseElement>,
Expand Down Expand Up @@ -477,4 +479,3 @@ configure({reactStrictMode: true})

When enabled, [`<StrictMode>`](https://react.dev/reference/react/StrictMode) is
rendered around the inner element. Defaults to `false`.