4 ms·
You're mixing two different problems. Just because you write your CSS in JavaScript doesn't mean you have to deliver them as inline styles. [1] [2] [3] CSS in
by tvararu 11y ago
You're mixing two different problems. Just because you write your CSS in JavaScript doesn't mean you have to deliver them as inline styles. [1] [2] [3]
CSS in JS is about leveraging the (relatively sane) variable/procedure declaration and control flow semantics that are already available to you in JavaScript. How you deliver them to get the best possible performance is a wholly different problem.
[1]: https://github.com/kodyl/stilr https://github.com/kodyl/stilr
[2]: https://github.com/robertknight/ts-style https://github.com/robertknight/ts-style
[3]: https://github.com/chenglou/RCSS https://github.com/chenglou/RCSS
- drinchev 11y agoThanks. This solves a lot in my head. Nice references.