Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

* CSS-in-JS

* Written as actual CSS

* Styles that are easily extended / composable

Would be my main reasons for liking it.



You don't seem to have looked at Emotion, because the most basic parts of it are clones of those parts from styled-components functionality, with variance once you get into the extended API.


I haven't. Not really sure why that matters though? I was highlighting styled-components as a much better way of handling styling in React compared to inline JSX styles or CSS files.


It matters because you replied to a comment about Emotion saying "styled-components or death".

If you wanted to compare it to something other than what the parent comment was talking about, maybe you should have made your own comment thread, or been more clear, or something.


You're very right. I somehow missed the reference to Emotion in the OP.


Because then you might write "styled-components or Emotion" rather than "styled-components or death".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: