DEV Community

Discussion on: CSS-in-JS - styled vs css prop

Collapse
 
shavrin profile image
Kacper Olek

Separation of logic and styles is a good idea. You can name styled Item component as an ItemWrapper for better readability.

Collapse
 
cullophid profile image
Andreas Møller

I think this is largely a leftover from the old days of web development. With react and other component based frameworks there isn't really any benefit to separating logic and styles

Collapse
 
sandrinap profile image
Sandrina Pereira • Edited

Could you further explain the benefits of "separation of logic and styles". Where exactly styled is better than css prop in that matter?