Skip to content

Commit b59b730

Browse files
committed
fix admonition
1 parent dfa9df0 commit b59b730

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/react-testing-library/api.mdx

+3-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ your components.
108108
### `legacyRoot`
109109

110110
:::warning
111+
111112
This option is only available when tests run with React 18 and earlier.
113+
112114
:::
113115

114116
By default we'll render with support for concurrent features (i.e.
@@ -344,7 +346,7 @@ function renderHook<
344346
Props,
345347
Q extends Queries = typeof queries,
346348
Container extends Element | DocumentFragment = HTMLElement,
347-
BaseElement extends Element | DocumentFragment = Container,
349+
BaseElement extends Element | DocumentFragment = Container
348350
>(
349351
render: (initialProps: Props) => Result,
350352
options?: RenderHookOptions<Props, Q, Container, BaseElement>,
@@ -477,4 +479,3 @@ configure({reactStrictMode: true})
477479
478480
When enabled, [`<StrictMode>`](https://react.dev/reference/react/StrictMode) is
479481
rendered around the inner element. Defaults to `false`.
480-

0 commit comments

Comments
 (0)