Download next.js/test/integration/amphtml/pages/another-amp.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 136 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/amphtml/pages/another-amp.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/amphtml/pages/another-amp.js
-
curl -L -o another-amp.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/amphtml/pages/another-amp.js
136 Bytes
| import { useAmp } from 'next/amp' | |
| export const config = { | |
| amp: true, | |
| } | |
| export default () => (useAmp() ? 'AMP mode' : 'Normal mode') | |