Download next.js/test/e2e/app-dir/app-css/app/suspensey-css/slow/page.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-css/app/suspensey-css/slow/page.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-css/app/suspensey-css/slow/page.js
-
curl -L -o page.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-css/app/suspensey-css/slow/page.js
386 Bytes
| 'use client' | |
| import Link from 'next/link' | |
| import { useEffect } from 'react' | |
| import './style.css' | |
| export default function Page() { | |
| useEffect(() => { | |
| console.log( | |
| (window.__log = | |
| 'background = ' + | |
| window.getComputedStyle(document.body).backgroundColor) | |
| ) | |
| }, []) | |
| return ( | |
| <div> | |
| <Link href="/suspensey-css">Get back</Link> | |
| </div> | |
| ) | |
| } | |