rsnext/packages/next-swc/crates/styled_jsx/tests/fixture/different-jsx-ids/input.js

24 lines
321 B
JavaScript
Raw Normal View History

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>
)