2 ms·
Some of the React libraries do support CSS extraction to plain CSS files. styled-components does not, and I'm not sure exactly why. It may be related to that t
by WorldMaker 5y ago
Some of the React libraries do support CSS extraction to plain CSS files.
styled-components does not, and I'm not sure exactly why. It may be related to that they support runtime variables inline as React props and/or that they didn't want to complicate the build pipeline more than they already complicate it. (Many of the libraries like Vue's have necessarily tighter coupling with webpack or whatever other packer they use to get the extraction automated.)