Skip to content

Commit e99027a

Browse files
authored
react: legacyRoot is only supported in React <= 18 (#1380)
1 parent 0796527 commit e99027a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/react-testing-library/api.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ your components.
107107

108108
### `legacyRoot`
109109

110+
**WARNING**: This option is only available when tests run with React 18 and earlier.
111+
110112
By default we'll render with support for concurrent features (i.e.
111113
[`ReactDOMClient.createRoot`](https://reactjs.org/docs/react-dom-client.html#createroot)).
112114
However, if you're dealing with a legacy app that requires rendering like in

0 commit comments

Comments
 (0)