|
39 | 39 |
|
40 | 40 | ## A Note about React 18 Support
|
41 | 41 |
|
| 42 | +If you are using the current version of `react-testing-library`, replace |
| 43 | + |
| 44 | +```js |
| 45 | +import { renderHook } from '@testing-library/react-hooks' |
| 46 | +``` |
| 47 | + |
| 48 | +with |
| 49 | + |
| 50 | +```js |
| 51 | +import { renderHook } from '@testing-library/react' |
| 52 | +``` |
| 53 | + |
| 54 | +Once replaced, `@testing-library/react-hooks` can be uninstalled. |
| 55 | + |
| 56 | +### Details |
| 57 | + |
42 | 58 | As part of the changes for React 18, it has been decided that the `renderHook` API provided by this
|
43 | 59 | library will instead be included as official additions to both `react-testing-library`
|
44 | 60 | ([PR](https://github.com/testing-library/react-testing-library/pull/991)) and
|
|
0 commit comments