diff --git a/docs/react-testing-library/intro.mdx b/docs/react-testing-library/intro.mdx index fdb38ddea..7d8d026c4 100644 --- a/docs/react-testing-library/intro.mdx +++ b/docs/react-testing-library/intro.mdx @@ -9,19 +9,22 @@ APIs for working with React components. ## Installation +To get started with `React Testing Library`, you'll need to install it together +with its peerDependency `@testing-library/dom`: + ```bash npm2yarn -npm install --save-dev @testing-library/react +npm install --save-dev @testing-library/react @testing-library/dom ``` ### With TypeScript -To get full type coverage, you need to install the types for `react` and `react-dom` as well: +To get full type coverage, you need to install the types for `react` and `react-dom` as +well: ```bash npm2yarn -npm install --save-dev @testing-library/react @types/react-dom @types/react +npm install --save-dev @testing-library/react @testing-library/dom @types/react @types/react-dom ``` - [gh]: https://github.com/testing-library/react-testing-library ## The problem