mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
38cc82d0bc
* with-global-stylesheet without relative paths and with node_modules * a parenthetical remark about material-components-web not being part of the example
12 lines
267 B
JavaScript
12 lines
267 B
JavaScript
import React from 'react'
|
|
|
|
import stylesheet from 'styles/index.scss'
|
|
// or, if you work with plain css
|
|
// import stylesheet from 'styles/index.css'
|
|
|
|
export default () =>
|
|
<div>
|
|
<style dangerouslySetInnerHTML={{ __html: stylesheet }} />
|
|
<p>ciao</p>
|
|
</div>
|