rsnext/packages/next/build/swc/tests/fixture/styled-jsx/different-jsx-ids/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

23 lines
321 B
JavaScript

const color = 'red'
const otherColor = 'green'
const A = () => (
<div>
<p>test</p>
<style jsx>{`p { color: ${color} }`}</style>
</div>
)
const B = () => (
<div>
<p>test</p>
<style jsx>{`p { color: ${otherColor} }`}</style>
</div>
)
export default () => (
<div>
<A />
<B />
</div>
)