16f7084e7f
* Move * Adjust * publish = false * Tree * Move tests * fixup * Split `emotion` * Split `styled_jsx` * Split `styled_jsx` * fmt * `--fix` * clippy * Update crates * fixup * publish * Bump * Rename * authors * Update * More update * Oh * Update test refs * Update test refs * Update again * Fix
23 lines
321 B
JavaScript
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>
|
|
)
|