Issue when using braces inside custom component
kirill-kruchkov opened this issue · comments
Kirill Kriuchkov commented
Christian Alfoni commented
Hi there!
This is interesting. The demo runs with marksy/components
. meaning that all HTML is transpiled by babel. the {
in components world is actually syntax, causing it to be invalid when there is only one. Example:
function ({bar}) {
return <div>foo {bar}</div>
}
You have to think of it as React code :-)
So your example should work if you:
<Row>
<Col>{`Need to tell you something over here
.my-class {
`}</Col>
</Row>
Kirill Kriuchkov commented
@christianalfoni, got it. Thank you!