4 ms·
That's exactly why we made styled-components![0] I really dislike writing styles as JavaScript objects, so styled-components let's you write actual CSS in Java
by mxstbr 10y ago
That's exactly why we made styled-components![0]
I really dislike writing styles as JavaScript objects, so styled-components let's you write actual CSS in JavaScript. We have also added support for a bunch of editors, so you don't miss out on syntax highlighting just because of that.
I'd encourage you to check it out!
[0]: https://www.styled-components.com https://www.styled-components.com
- pygy_ 10y agoI just discovered http://typestyle.io/ http://typestyle.io/ which should make it much easier to write CSS in JS... Auto-completion everywhere... I'll probably steal the approach for my own CSS-in-JS lib (j2c).
- roboguy12 10y ago+1 for typestyle. My team and I have been using it for the past few weeks in trying to clean up a rather monolithic css project, and it's been really cool to work with.