Created
October 9, 2016 13:11
-
-
Save kana-sama/b4bd6c839ba9e5a2eb515d35f2af961b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Component { | |
render() { | |
const myFontSize = 10 | |
const className = 'test' | |
const text = 'Lorem ipsum' | |
return ` | |
<p | |
style="${CSS({ | |
fontSize: myFontSize, | |
fontFamily: 'sans-serif', | |
})}" | |
> | |
<div class=${className}> | |
${text} | |
</div> | |
</p> | |
` | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment