3 ms·
Why that particular one?
by crooked-v 8y ago
Why that particular one?
- fastball 8y ago* CSS-in-JS * Written as actual CSS * Styles that are easily extended / composable Would be my main reasons for liking it.
- crooked-v 8y agoYou 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.
- fastball 8y agoI 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.
- jholman 8y agoIt 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.
- fastball 8y agoYou're very right. I somehow missed the reference to Emotion in the OP.
- Gigablah 8y agoBecause then you might write "styled-components or Emotion" rather than "styled-components or death".