2018-09-02 19:18:20 +02:00
|
|
|
import dynamic from 'next/dynamic'
|
|
|
|
import Head from 'next/head'
|
|
|
|
|
|
|
|
const Test = dynamic({
|
|
|
|
loader: async () => {
|
|
|
|
// component
|
|
|
|
return () => {
|
2019-05-30 03:19:32 +02:00
|
|
|
return (
|
|
|
|
<div className='dynamic-style'>
|
|
|
|
<Head>
|
|
|
|
<style
|
|
|
|
dangerouslySetInnerHTML={{
|
|
|
|
__html: `
|
2018-09-02 19:18:20 +02:00
|
|
|
.dynamic-style {
|
|
|
|
background-color: green;
|
|
|
|
height: 200px;
|
|
|
|
}
|
2019-05-30 03:19:32 +02:00
|
|
|
`
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</Head>
|
|
|
|
test
|
|
|
|
</div>
|
|
|
|
)
|
2018-09-02 19:18:20 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
ssr: false
|
|
|
|
})
|
|
|
|
|
|
|
|
export default Test
|