4a2d5a1b49
Co-authored-by: Tim Neutkens <tim@timneutkens.nl> Co-authored-by: Tim Neutkens <timneutkens@me.com>
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>
|
|
)
|