From 97e7f9ca151753dc46202ba3fbc0264c8ae7abd0 Mon Sep 17 00:00:00 2001 From: Rajat Jindal Date: Fri, 10 May 2024 22:32:49 +0530 Subject: [PATCH] Change react dependency version in
page https://react.dev/reference/react-dom/components/form#display-a-form-submission-error-without-javascript section codesandbox is not working and throwing the error because `useActionState` hook is not available in this `18.3.0-canary-6db7f4209-20231021` version, I updated this version with this `canary`. --- src/content/reference/react-dom/components/form.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/reference/react-dom/components/form.md b/src/content/reference/react-dom/components/form.md index d5f6560735b..8f6ab00e009 100644 --- a/src/content/reference/react-dom/components/form.md +++ b/src/content/reference/react-dom/components/form.md @@ -375,8 +375,8 @@ export async function signUpNewUser(newEmail) { ```json package.json hidden { "dependencies": { - "react": "18.3.0-canary-6db7f4209-20231021", - "react-dom": "18.3.0-canary-6db7f4209-20231021", + "react": "canary", + "react-dom": "canary", "react-scripts": "^5.0.0" }, "main": "/index.js",