Download next.js/test/e2e/app-dir/actions/app/error-handling/actions.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 176 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/error-handling/actions.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/actions/app/error-handling/actions.js
-
curl -L -o actions.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/error-handling/actions.js
176 Bytes
| 'use server' | |
| export async function action(instance) { | |
| // Not allowed to access, as it's just a temporary reference. | |
| console.log(instance.value) | |
| return 'action result' | |
| } | |