Download next.js/test/integration/amphtml/pages/nested/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 171 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/amphtml/pages/nested/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/amphtml/pages/nested/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/amphtml/pages/nested/index.js
171 Bytes
| import { useAmp } from 'next/amp' | |
| export const config = { amp: 'hybrid' } | |
| export default () => { | |
| const isAmp = useAmp() | |
| return `Hello ${isAmp ? 'AMP' : 'others'}` | |
| } | |