DEV Community

Styletron: React Component Styles on Steroids

K on April 02, 2017

TL;DR Here is a repository with a working example. :) If you are up to date with the newest React trends, then you probably heard about styled-com...
Collapse
 
hadfieldn profile image
Nathan Hadfield

Have you considered making a tag template function that would support the same syntax as styled-components? One of the things I really like about styled-components is that I can use my IDE's support for CSS autocompletion. Also this would make it easy to transition from styled-components to Styletron.

Collapse
 
kayis profile image
K

This isn't my library, I just wrote about it, because I thought it deserves some promotion :D

As far as I can tell (and I may be wrong) the idea of the Object literals is to allow typing via TypeScript or something.

Collapse
 
hadfieldn profile image
Nathan Hadfield

I see. Thanks for a helpful article!