Skip to content

Commit 73e6cb2

Browse files
committed
Use latest React version with hooks.
1 parent 6b1f521 commit 73e6cb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"test:backwards": "npm i react@16.3.1 react-dom@16.3.1 && npm test",
3535
"test:forwards": "npm i react@next react-dom@next && npm test",
3636
"test:latest": "npm i react@latest react-dom@latest && npm test",
37-
"test:hook": "npm i react@16.7.0-alpha.0 react-dom@16.7.0-alpha.0 && jest src/useAsync.spec.js --collectCoverageFrom=src/useAsync.js",
37+
"test:hook": "npm i react@16.7.0-alpha.2 react-dom@16.7.0-alpha.2 && jest src/useAsync.spec.js --collectCoverageFrom=src/useAsync.js",
3838
"prepublishOnly": "npm run lint && npm run test:compat && npm run test:hook && npm run build"
3939
},
4040
"dependencies": {},

src/useAsync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const useAsync = (opts, init) => {
8282

8383
const unsupported = () => {
8484
throw new Error(
85-
"useAsync requires react@16.7.0 or later. Upgrade your React version or use the <Async> component instead."
85+
"useAsync requires react@16.7.0-alpha. Upgrade your React version or use the <Async> component instead."
8686
)
8787
}
8888

0 commit comments

Comments
 (0)