DEV Community

Thierry
Thierry

Posted on

Styled Components vs CSS

Trying to figure out the distribution between CSS fans and styled-components. Let us know which one you prefer:

https://github.com/GetStream/stream-chat-react/issues/100

Top comments (6)

Collapse
 
mateiadrielrafael profile image
Matei Adriel

Styled components / emotion / other similar stuff is great, but it seems to lag vsvode a lot (i have 8gb ram and an 8th gen i7, i was expecting vscode to work ok, but it gets super slow when i import these)

Collapse
 
jimmymcbride profile image
Jimmy McBride • Edited

You can do so much more with styled components. You can nest css inside a styled component. You can create custom props. It's a dream when it comes to creating reusable components. It's not even a fair comparison.

A better question, or a better discussion, I think, would be: SASS vs styled components.

Collapse
 
nickparsons profile image
Nick Parsons

Styled components all the way!

Collapse
 
cadams profile image
Chad Adams

I personally like JSS because react material-ui uses it. Hated it at first, but kinda grew on me.

Collapse
 
robbyronk profile image
Robby Ronk

Styled components for apps, hands down. For a library, CSS works for everyone.

Some comments may only be visible to logged-in visitors. Sign in to view all comments.