Created
January 23, 2019 14:10
-
-
Save reactcoder-it/5c4439ed8931de8b95db9ddc8ceea6b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default () => ( | |
<div> | |
Hello world | |
<p>scoped!</p> | |
<style jsx>{` | |
p { | |
color: blue; | |
} | |
div { | |
background: red; | |
} | |
@media (max-width: 600px) { | |
div { | |
background: blue; | |
} | |
} | |
`}</style> | |
<style global jsx>{` | |
body { | |
background: black; | |
} | |
`}</style> | |
</div> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment