DEV Community

Discussion on: Tagged Template Literals - The Magic Behind Styled Components

Collapse
 
ronene profile image
Ronen Elster • Edited

Nice. Note that css-in-js allows non-function expressions. So the
font-size: ${size}px;
expression in the attached image should work too
dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
dekel profile image
Dekel

Thanks for mentioning this!