Skip to content

Commit

Permalink
fix: lock react and react-dom to a fixed version (#83)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hijiangtao authored and streamich committed Dec 20, 2018
1 parent d8800b4 commit 455812d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"devDependencies": {
"@storybook/react": "^3.4.11",
"react": "next",
"react-dom": "next",
"react": "16.7.0-alpha.2",
"react-dom": "16.7.0-alpha.2",
"typescript": "^3.2.2",
"ts-node": "^7.0.1",
"ts-loader": "3",
Expand All @@ -58,8 +58,8 @@
"react-spring": "^6.1.4"
},
"peerDependencies": {
"react": "16.7.0-alpha.0",
"react-dom": "16.7.0-alpha.0"
"react": "16.7.0-alpha.2",
"react-dom": "16.7.0-alpha.2"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit 455812d

Please sign in to comment.