Download next.js/test/production/custom-server/app/use-cache/page.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 291 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/custom-server/app/use-cache/page.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/production/custom-server/app/use-cache/page.js
-
curl -L -o page.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/custom-server/app/use-cache/page.js
291 Bytes
| import { connection } from 'next/server' | |
| async function Inner({ id }) { | |
| 'use cache' | |
| return <p>inner cache</p> | |
| } | |
| async function Outer({ id }) { | |
| 'use cache' | |
| return <Inner id="inner" /> | |
| } | |
| export default async function Page() { | |
| await connection() | |
| return <Outer id="outer" /> | |
| } | |