Download next.js/test/e2e/app-dir/actions/app/server/client-form.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/server/client-form.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/actions/app/server/client-form.js
-
curl -L -o client-form.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/server/client-form.js
370 Bytes
| 'use client' | |
| import { redirectAction } from './actions' | |
| export default function Form() { | |
| return ( | |
| <form> | |
| <input type="text" name="hidden-info" defaultValue="hi" hidden /> | |
| <input type="text" name="name" id="client-name" required /> | |
| <button formAction={redirectAction} type="submit" id="there"> | |
| Go there | |
| </button> | |
| </form> | |
| ) | |
| } | |