rsnext/packages/next/build/swc/tests/fixture/styled-jsx/global/input.js
Maia Teegarden 4a2d5a1b49
Add/styled jsx swc (#29005)
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Tim Neutkens <timneutkens@me.com>
2021-09-15 09:24:31 +02:00

22 lines
369 B
JavaScript

const Test = () => (
<div>
<style jsx global>{`
body {
color: red
}
:hover { color: red; display: flex;
animation: foo 1s ease-out }
div a {
display: none;
}
[data-test] > div {
color: red;
}
`}</style>
</div>
)
const Test2 = () => <style global jsx>{'p { color: red }'}</style>