From 1352ba1dcf796be72601106416f2b93ad482e610 Mon Sep 17 00:00:00 2001 From: Yann Pringault Date: Tue, 2 Mar 2021 14:10:38 +0000 Subject: [PATCH] [examples/with-typescript] Upgrade to React v17 (#22674) This avoids the warning when you init a new Next.js app with the example: ``` warn - React 17.0.1 or newer will be required to leverage all of the upcoming features in Next.js 11. Read more: https://err.sh/next.js/react-version ``` --- examples/with-typescript/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/with-typescript/package.json b/examples/with-typescript/package.json index 71b0fd8b3ee6a..8f904828fd736 100644 --- a/examples/with-typescript/package.json +++ b/examples/with-typescript/package.json @@ -9,13 +9,13 @@ }, "dependencies": { "next": "latest", - "react": "^16.12.0", - "react-dom": "^16.12.0" + "react": "^17.0.1", + "react-dom": "^17.0.1" }, "devDependencies": { "@types/node": "^12.12.21", - "@types/react": "^16.9.16", - "@types/react-dom": "^16.9.4", + "@types/react": "^17.0.2", + "@types/react-dom": "^17.0.1", "typescript": "4.0" }, "license": "MIT"