Download next.js/test/e2e/app-dir/actions/app/server/edge/page.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/server/edge/page.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/actions/app/server/edge/page.js
-
curl -L -o page.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/server/edge/page.js
403 Bytes
| import Counter from '../counter' | |
| import Form from '../form' | |
| import dec from '../actions' | |
| import { inc } from '../actions-3' | |
| export default function Page() { | |
| const two = 2 | |
| return ( | |
| <> | |
| <Counter | |
| inc={inc} | |
| dec={dec} | |
| double={async (x) => { | |
| 'use server' | |
| return x * two | |
| }} | |
| /> | |
| <Form /> | |
| </> | |
| ) | |
| } | |
| export const runtime = 'edge' | |