未验证 提交 75b25901 编写于 作者: J James Mosier 提交者: GitHub

Update examples React to 16.13.1 (#14899)

Fast Refresh doesn't appear to work with older version (16.8.x) versions of React. I was able to reproduce this via this issue https://github.com/vercel/next.js/issues/14895

I updated all examples I found of React `16.8.x` to `^16.13.1` so that future installs will auto bump to the latest minor version. Previously the pinned version was causing the lock of version.
上级 33234ca1
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
}, },
"dependencies": { "dependencies": {
"next": "latest", "next": "latest",
"react": "16.8.6", "react": "^16.13.1",
"react-dom": "16.8.6" "react-dom": "^16.13.1"
} }
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"next": "latest", "next": "latest",
"react": "16.8.6", "react": "^16.13.1",
"react-dom": "16.8.6" "react-dom": "^16.13.1"
} }
} }
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
}, },
"dependencies": { "dependencies": {
"next": "latest", "next": "latest",
"react": "16.8.6", "react": "^16.13.1",
"react-dom": "16.8.6" "react-dom": "^16.13.1"
}, },
"license": "ISC" "license": "ISC"
} }
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
"@zeit/next-css": "^1.0.1", "@zeit/next-css": "^1.0.1",
"linaria": "2.0.0-alpha.5", "linaria": "2.0.0-alpha.5",
"next": "latest", "next": "latest",
"react": "16.8.3", "react": "^16.13.1",
"react-dom": "16.8.3" "react-dom": "^16.13.1"
}, },
"license": "ISC" "license": "ISC"
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"bulma-pro": "^0.1.7", "bulma-pro": "^0.1.7",
"next": "^9.1.8-canary.11", "next": "^9.1.8-canary.11",
"rbx": "^2.2.0", "rbx": "^2.2.0",
"react": "16.8.6", "react": "^16.13.1",
"react-dom": "16.8.6" "react-dom": "^16.13.1"
} }
} }
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
}, },
"dependencies": { "dependencies": {
"next": "latest", "next": "latest",
"react": "16.8.6", "react": "^16.13.1",
"react-dom": "16.8.6" "react-dom": "^16.13.1"
}, },
"license": "ISC" "license": "ISC"
} }
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
}, },
"dependencies": { "dependencies": {
"next": "latest", "next": "latest",
"react": "16.8.6", "react": "^16.13.1",
"react-dom": "16.8.6" "react-dom": "^16.13.1"
}, },
"license": "ISC" "license": "ISC"
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册