docs: add js disabled demo video

This commit is contained in:
Corbin Crutchley
2023-12-20 13:12:25 -08:00
parent b0aa9a8f6a
commit 71a75599c4
2 changed files with 1 additions and 1 deletions

View File

@@ -290,7 +290,7 @@ Because `useFormState` utilizes the `<form>` element's native `action` attribute
Assume you have the above sample code, but you have JavaScript disabled. When you click the submit button, the form will submit to the `action` attribute, and the page will refresh with the new information for the user. Assume you have the above sample code, but you have JavaScript disabled. When you click the submit button, the form will submit to the `action` attribute, and the page will refresh with the new information for the user.
<!-- TODO: Include video to showcase --> <video src="./nextjs-use-state-js-disabled.mp4" title="Disabling the JavaScript while using useFormState with a server action will cause the page to refresh with the data you want to see rendered"></video>
> Keep in mind that any client-side React code will not run if JavaScript is disabled. This includes the `useEffect` Hook among others. > Keep in mind that any client-side React code will not run if JavaScript is disabled. This includes the `useEffect` Hook among others.