rsnext/test/integration/amphtml-fragment-style/pages/index.js
JJ Kasper bc1e088b73 Make styles compatible in AMP mode (#7060)
* Make styles compatible in AMP mode

* bump

* Update to parse styles from fragment for
backwards compat in AMP mode

* Add test for AMP styles fragment support
2019-04-23 00:32:46 +09:00

12 lines
189 B
JavaScript

import { withAmp } from 'next/amp'
export default withAmp(() => (
<div>
<p>Hello world!</p>
<style jsx>{`
p {
font-size: 16.4px;
}
`}</style>
</div>
))