Skip to content

Commit

Permalink
react: legacyRoot is only supported in React <= 18 (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Apr 8, 2024
1 parent 0796527 commit e99027a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/react-testing-library/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e99027a

Please sign in to comment.