Hacker News new | ask | show | jobs
by fastball 1999 days ago
Doesn't @emotion's babel plugin already do this, or am I missing something?
1 comments

Not quite. Emotion doesn't do the atomic splitting - ie. one class name per style rule. This splitting results in ugly looking HTML but if two components are using some common subset of CSS rules they will partially reuse the same css classes.

It is closer to https://www.styletron.org/ in that regard.