Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,22 @@

## A Note about React 18 Support

If you are using the current version of `react-testing-library`, replace

```js
import { renderHook } from '@testing-library/react-hooks'
```

with

```js
import { renderHook } from '@testing-library/react'
```

Once replaced, `@testing-library/react-hooks` can be uninstalled.

### Details

As part of the changes for React 18, it has been decided that the `renderHook` API provided by this
library will instead be included as official additions to both `react-testing-library`
([PR](https://github.com/testing-library/react-testing-library/pull/991)) and
Expand Down