Giuseppe
8 years ago
committed by
Guillermo Rauch
4 changed files with 52 additions and 1 deletions
@ -0,0 +1,27 @@ |
|||
const Test = () => <span>test</span> |
|||
|
|||
const Test2 = () => ( |
|||
<div> |
|||
<span>test</span> |
|||
<style jsx>{` |
|||
span { |
|||
color: red; |
|||
} |
|||
`}</style>
|
|||
</div> |
|||
) |
|||
|
|||
export default class { |
|||
render () { |
|||
return ( |
|||
<div> |
|||
<p>test</p> |
|||
<style jsx>{` |
|||
p { |
|||
color: red; |
|||
} |
|||
`}</style>
|
|||
</div> |
|||
) |
|||
} |
|||
} |
@ -0,0 +1,16 @@ |
|||
import _JSXStyle from "styled-jsx/style"; |
|||
const Test = () => <span>test</span>; |
|||
|
|||
const Test2 = () => <div data-jsx={1535297024}> |
|||
<span data-jsx={1535297024}>test</span> |
|||
<_JSXStyle styleId={1535297024} css={"span[data-jsx=\"1535297024\"] {color: red;}"} /> |
|||
</div>; |
|||
|
|||
export default class { |
|||
render() { |
|||
return <div data-jsx={1891769468}> |
|||
<p data-jsx={1891769468}>test</p> |
|||
<_JSXStyle styleId={1891769468} css={"p[data-jsx=\"1891769468\"] {color: red;}"} /> |
|||
</div>; |
|||
} |
|||
} |
Loading…
Reference in new issue