Skip to content

Commit dfa9df0

Browse files
authored
docs: use warning admonition for legacyRoot
1 parent e99027a commit dfa9df0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/react-testing-library/api.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ your components.
107107

108108
### `legacyRoot`
109109

110-
**WARNING**: This option is only available when tests run with React 18 and earlier.
110+
:::warning
111+
This option is only available when tests run with React 18 and earlier.
112+
:::
111113

112114
By default we'll render with support for concurrent features (i.e.
113115
[`ReactDOMClient.createRoot`](https://reactjs.org/docs/react-dom-client.html#createroot)).

0 commit comments

Comments
 (0)