Download next.js/test/e2e/app-dir/app-validation/app/layout.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-validation/app/layout.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-validation/app/layout.js
-
curl -L -o layout.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-validation/app/layout.js
488 Bytes
| export default function Root({ children }) { | |
| return ( | |
| <html> | |
| <head> | |
| <title>Hello World</title> | |
| <script | |
| dangerouslySetInnerHTML={{ | |
| __html: `if (location.search.includes('bot')) { | |
| Object.defineProperty(navigator, 'userAgent', { | |
| value: new URLSearchParams(location.search).get("useragent"), | |
| }); | |
| }`, | |
| }} | |
| /> | |
| ) | |
| } | |