mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
4051ffcb01
* Add initial AMP implementation * Implement experimental feature flag * Implement feedback from sbenz * Add next/amp and `useAmp` hook * Use /:path*/amp instead * Add canonical * Add amphtml tag * Add ampEnabled for rel=“amphtml” * Remove extra type
7 lines
128 B
JavaScript
7 lines
128 B
JavaScript
import {useAmp} from 'next/amp'
|
|
|
|
export default () => {
|
|
const isAmp = useAmp()
|
|
return `Hello ${isAmp ? 'AMP' : 'others'}`
|
|
}
|