react-code-dataset / next.js /test /development /app-dir /serialize-circular-error /app /client /page.tsx
Download next.js/test/development/app-dir/serialize-circular-error/app/client/page.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/serialize-circular-error/app/client/page.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/app-dir/serialize-circular-error/app/client/page.tsx
-
curl -L -o page.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/serialize-circular-error/app/client/page.tsx
321 Bytes
| 'use client' | |
| class C { | |
| other: D | null | |
| constructor() { | |
| this.other = null | |
| } | |
| } | |
| class D { | |
| a: C | |
| constructor(a: C) { | |
| this.a = a | |
| a.other = this | |
| } | |
| } | |
| const objC = new C() | |
| const objD = new D(objC) | |
| export default function Page() { | |
| // eslint-disable-next-line no-throw-literal | |
| throw { objC, objD } | |
| } | |