react-code-dataset / next.js /test /development /pages-dir /client-navigation /fixture /pages /circular-json-error.js
Download next.js/test/development/pages-dir/client-navigation/fixture/pages/circular-json-error.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/pages-dir/client-navigation/fixture/pages/circular-json-error.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/pages-dir/client-navigation/fixture/pages/circular-json-error.js
-
curl -L -o circular-json-error.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/pages-dir/client-navigation/fixture/pages/circular-json-error.js
326 Bytes
| function CircularJSONErrorPage() { | |
| return <div>This won't render</div> | |
| } | |
| CircularJSONErrorPage.getInitialProps = () => { | |
| // This creates a circular JSON object | |
| const object = {} | |
| object.arr = [object, object] | |
| object.arr.push(object.arr) | |
| object.obj = object | |
| return object | |
| } | |
| export default CircularJSONErrorPage | |