From b4847d93ed6d900fe25a3b9a5b81ae58b0f4c0b2 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Mon, 8 Apr 2024 15:56:08 +0200 Subject: [PATCH] react: legacyRoot is only supported in React <= 18 --- docs/react-testing-library/api.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/react-testing-library/api.mdx b/docs/react-testing-library/api.mdx index 359bc1134..67009798c 100644 --- a/docs/react-testing-library/api.mdx +++ b/docs/react-testing-library/api.mdx @@ -107,6 +107,8 @@ 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. [`ReactDOMClient.createRoot`](https://reactjs.org/docs/react-dom-client.html#createroot)). However, if you're dealing with a legacy app that requires rendering like in