Hi Lee,
What do you think about CSS in JS libraries that compiles CSS from JavaScript and inject a <style> in <head> at run-time ? like these ones:
github.com/cssinjs/react-jss (started by Dan Abramov on top of JSS)
styled-components.com/docs/basics
They seem to solve "CSS at scale" problem:
speakerdeck.com/vjeux/react-css-in-js
in a more elegant way than inline styles.
In my opinion the approach they take is the perfect solution for Component Based Application. The downside would be a small penalty when the application is loaded because JS to CSS and injection of <style> in <head> (a style for every component) happens at run-time but the upside is better maintainability.
Are there plans for Facebook to eventually migrate to similar approach ?
Thank you
No responses yet.