Emotion: Preferred way of writing component styles

Created on 18 Jun 2018  路  2Comments  路  Source: emotion-js/emotion

This isn't a technical issue as much as a convention issue. My team and I are currently discussing a way that we'd like to write component styles.

Currently, emotion supports two styles: template literals and object expressions.

Is one recommended over the other? What are the drawbacks/strengths of each? Should we add a docs page with this info? Should we conventionalize a style?

question

Most helpful comment

IMHO there is no much difference between those 2. Just go with the one you prefer. Our team tends to use template literals for static parts and we return objects from our interpolated functions.

All 2 comments

IMHO there is no much difference between those 2. Just go with the one you prefer. Our team tends to use template literals for static parts and we return objects from our interpolated functions.

Agree with @Andarist here! Can close this issue now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

johnbrett picture johnbrett  路  3Comments

pimmey picture pimmey  路  3Comments

Aaron-Pool picture Aaron-Pool  路  3Comments

desmap picture desmap  路  3Comments

sami616 picture sami616  路  3Comments