4 ms·
Neat. Now, why not actual CSS?
by cfv 10y ago
Neat. Now, why not actual CSS?
- mxstbr 10y agoCan I forward you to these four resources? (I realize this might sound like a cop-out answer, but these people have summed up the benefits of CSS-in-JS so much better than I could in two minutes!) [0]: Rendering Khan Academy’s Learn Menu Wherever I Please: Documenting the move from the handlebars + less combo to react and css-in-js, and why KhanAcademy did it [1]: My thoughts on Inline Styles: A great collection of both pros and cons about styles in javascript. Most of those doubts we've tried to solve with styled-components [2]: "Scale" FUD and Style Components: Using components as low-level styling constructs [3]: Ryan's random thoughts about inline styles: Explaining some benefits of using styles in js BONUS [4] The Future of Reusable CSS: How component libraries should be styled, and why they're not yet ---- [0]: https://medium.com/@jdan/rendering-khan-academys-learn-menu-wherever-i-please-4b58d4a9432d#.w9nshye05 https://medium.com/@jdan/rendering-khan-academys-learn-menu-... [1]: https://medium.com/@andrewingram/my-thoughts-on-inline-styles-da94682b5e35#.trbnpmcn9 https://medium.com/@andrewingram/my-thoughts-on-inline-style... [2]: https://medium.com/learnreact/scale-fud-and-style-components-c0ce87ec9772#.kzjba8lcg https://medium.com/learnreact/scale-fud-and-style-components... [3]: https://www.youtube.com/watch?v=EkPcGS4TzdQ https://www.youtube.com/watch?v=EkPcGS4TzdQ [4]: https://www.youtube.com/watch?v=XR6eM_5pAb0 https://www.youtube.com/watch?v=XR6eM_5pAb0
- cfvergara 10y agoNeat. Thanks!
- rojobuffalo 10y agoAm I an outlier for enjoying plain CSS? I get everything I need and want with css-modules, classnames/bind, and the occasional inline style.