We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e785f6 commit ae1afc0Copy full SHA for ae1afc0
package.json
@@ -62,8 +62,8 @@
62
"typescript": "^4.1.2"
63
},
64
"peerDependencies": {
65
- "react": "^18.3.0-canary",
66
- "react-dom": "^18.3.0-canary"
+ "react": "^18.0.0 || ^18.3.0-canary",
+ "react-dom": "^18.0.0 || ^18.3.0-canary"
67
68
"eslintConfig": {
69
"extends": "./node_modules/kcd-scripts/eslint.js",
src/act-compat.js
@@ -1,6 +1,7 @@
1
import * as React from 'react'
2
+import * as DeprecatedReactTestUtils from 'react-dom/test-utils'
3
-const reactAct = React.act
4
+const reactAct = React.act ?? DeprecatedReactTestUtils.act
5
6
function getGlobalThis() {
7
/* istanbul ignore else */
0 commit comments