bc1e088b73
* 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
12 lines
189 B
JavaScript
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>
|
|
))
|