Skip to content

Commit 7c7dc78

Browse files
docs: acknowledge peer dependency requirements (#1131)
1 parent bef9e07 commit 7c7dc78

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ yarn add --dev @testing-library/react
113113

114114
This library has `peerDependencies` listings for `react` and `react-dom`.
115115

116+
_React Testing Library versions 13+ require React v18. If your project uses an
117+
older version of React, be sure to install version 12:_
118+
119+
```
120+
npm install --save-dev @testing-library/react@12
121+
122+
123+
yarn add --dev @testing-library/react@12
124+
```
125+
116126
You may also be interested in installing `@testing-library/jest-dom` so you can
117127
use [the custom jest matchers](https://github.com/testing-library/jest-dom).
118128

0 commit comments

Comments
 (0)