Skip to content

Commit 455812d

Browse files
hijiangtaostreamich
authored andcommitted
fix: lock react and react-dom to a fixed version (#83)
According to React Blog, the newest version of React v16.7 doesn't include React Hooks, before they tag an extra version for upcoming hooks, we should lock the version to latest react 16.7.0 alpha version, rather than use `next` to specify its version info in `package.json`. More details can be found at https://reactjs.org/blog/2018/12/19/react-v-16-7.html#can-i-use-hooks-yet
1 parent d8800b4 commit 455812d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
},
4242
"devDependencies": {
4343
"@storybook/react": "^3.4.11",
44-
"react": "next",
45-
"react-dom": "next",
44+
"react": "16.7.0-alpha.2",
45+
"react-dom": "16.7.0-alpha.2",
4646
"typescript": "^3.2.2",
4747
"ts-node": "^7.0.1",
4848
"ts-loader": "3",
@@ -58,8 +58,8 @@
5858
"react-spring": "^6.1.4"
5959
},
6060
"peerDependencies": {
61-
"react": "16.7.0-alpha.0",
62-
"react-dom": "16.7.0-alpha.0"
61+
"react": "16.7.0-alpha.2",
62+
"react-dom": "16.7.0-alpha.2"
6363
},
6464
"config": {
6565
"commitizen": {

0 commit comments

Comments
 (0)