Skip to content

Commit 684b2f1

Browse files
committed
docs: copy readme updates to introduction
1 parent 34fa682 commit 684b2f1

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docs/introduction.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,21 @@ npm install --save-dev @testing-library/react-hooks
6868
### Peer Dependencies
6969

7070
`react-hooks-testing-library` does not come bundled with a version of
71-
[`react`](https://www.npmjs.com/package/react) or
72-
[`react-test-renderer`](https://www.npmjs.com/package/react-test-renderer) to allow you to install
73-
the specific version you want to test against. Generally, the installed versions for `react` and
74-
`react-test-renderer` should have matching versions:
71+
[`react`](https://www.npmjs.com/package/react) to allow you to install the specific version you want
72+
to test against. It also does not come installed with a specific renderer, we currently support
73+
[`react-test-renderer`](https://www.npmjs.com/package/react-test-renderer) and
74+
[`react-dom`](https://www.npmjs.com/package/react-dom), you only need to install one of them.
75+
However,you can install both, but `react-test-renderer` is the default, for more information see the
76+
[installation docs](https://react-hooks-testing-library.com/#installation). Generally, the installed
77+
versions for `react` and the selected renderer should have matching versions:
7578

7679
```sh
7780
npm install react@^16.9.0
7881
npm install --save-dev react-test-renderer@^16.9.0
7982
```
8083

81-
> **NOTE: The minimum supported version of `react` and `react-test-renderer` is `^16.9.0`.**
84+
> **NOTE: The minimum supported version of `react`, `react-test-renderer` and `react-dom` is
85+
> `^16.9.0`.**
8286
8387
## Testing Framework
8488

0 commit comments

Comments
 (0)