import { useAmp } from 'next/amp' export const config = { amp: 'hybrid', } export const getStaticProps = () => { return { props: { hello: 'hello', random: Math.random(), }, } } export default ({ hello, random }) => ( <>
useAmp: {useAmp() ? 'yes' : 'no'}
{hello}
{random}
> )