rsnext/test/integration/amp-export-validation/pages/dog-cat.js

11 lines
335 B
JavaScript
Raw Normal View History

import { withAmp } from 'next/amp'
export default withAmp(() => (
<div>
{/* I throw an error since <amp-img/> should be used instead */}
<img src='/dog.gif' height={400} width={800} />
{/* I show a warning since the amp-video script isn't added */}
<amp-video src='/cats.mp4' height={400} width={800} />
</div>
))