We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a6e935 commit db18d8cCopy full SHA for db18d8c
README.md
@@ -39,6 +39,22 @@
39
40
## A Note about React 18 Support
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
51
+import { renderHook } from '@testing-library/react'
52
53
54
+Once replaced, `@testing-library/react-hooks` can be uninstalled.
55
56
+### Details
57
58
As part of the changes for React 18, it has been decided that the `renderHook` API provided by this
59
library will instead be included as official additions to both `react-testing-library`
60
([PR](https://github.com/testing-library/react-testing-library/pull/991)) and
0 commit comments