react-code-dataset / next.js /test /development /app-dir /react-performance-track /app /fetch /page.tsx
Download next.js/test/development/app-dir/react-performance-track/app/fetch/page.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 264 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/react-performance-track/app/fetch/page.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/app-dir/react-performance-track/app/fetch/page.tsx
-
curl -L -o page.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/react-performance-track/app/fetch/page.tsx
264 Bytes
| async function abstraction() { | |
| await fetch('https://next-data-api-endpoint.vercel.app/api/random') | |
| } | |
| export default async function FetchPage() { | |
| await abstraction() | |
| await fetch('https://next-data-api-endpoint.vercel.app/api/random') | |
| return <p>Done</p> | |
| } | |