News for hackers. Stuff that matters.
Re:Why I left React for Vue by cageface on Tuesday December 25, 2018 @10:41PM (#18760346)
I've found styled-components to solve just about all my gripes about CSS in React. You even get auto formatting with Prettier.

https://www.styled-components.com

Re:Why I left React for Vue by molszanski on Tuesday December 25, 2018 @10:55PM (#18760398)
What are your gripes?
Re:Why I left React for Vue by cageface on Tuesday December 25, 2018 @11:10PM (#18760449)
I’ve found doing CSS in JS to be a bit awkward. The fancier CSS grid syntax is a good example of CSS that’s awkward to write in JSON. styled-components lets me use normal CSS syntax in a natural way alongside JSX code.
Re:Why I left React for Vue by molszanski on Tuesday December 25, 2018 @11:23PM (#18760499)
What "CSS in JS" you where using before? JSS?
Re:Why I left React for Vue by cageface on Tuesday December 25, 2018 @11:39PM (#18760558)
Mainly I was just using react’s native support for passing styles as JSON objects.
Re:Why I left React for Vue by molszanski on Wednesday December 26, 2018 @12:30AM (#18760764)
Oh. Now I understand. Yeah, that makes a lot of sense.