Download next.js/test/development/app-dir/hook-function-names/app/page.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 185 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/hook-function-names/app/page.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/app-dir/hook-function-names/app/page.tsx
-
curl -L -o page.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/hook-function-names/app/page.tsx
185 Bytes
| 'use client' | |
| import { useEffect } from 'react' | |
| export default function Page() { | |
| useEffect(() => { | |
| throw new Error('error in useEffect') | |
| }, []) | |
| return <p>Hello world!</p> | |
| } | |