Skip to content

Commit e862067

Browse files
authored
docs: recommend installing @types/react (#1390)
1 parent 288b86f commit e862067

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/react-testing-library/intro.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ npm install --save-dev @testing-library/react
1515

1616
### With TypeScript
1717

18-
To get full type coverage, you need to install the types for `react-dom` as well:
18+
To get full type coverage, you need to install the types for `react` and `react-dom` as well:
1919

2020
```bash npm2yarn
21-
npm install --save-dev @testing-library/react @types/react-dom
21+
npm install --save-dev @testing-library/react @types/react-dom @types/react
2222
```
2323

2424

0 commit comments

Comments
 (0)