rsnext/test/integration/amphtml/pages/use-amp-hook.js
Connor Davis fcf1167cd4 Upgrade standard and fix files (#6358)
Upgrades `standard` to major version 12
2019-02-19 22:45:07 +01:00

6 lines
130 B
JavaScript

import { useAmp } from 'next/amp'
export default () => {
const isAmp = useAmp()
return `Hello ${isAmp ? 'AMP' : 'others'}`
}