React Inline Styles and the Future of CSS
blog.formidable.com
blog.formidable.com
Consider the cases where CSS's common painpoints are maximized: complex pages with a lot of (3rd party) components. Does the added cleverness of the tools make that much difference, or does ultimately, a complex page come with unavoidable challenges by definition? So far I'm not completely convinced that the value-add is big enough to warrant such a different approach.
Using style=`...` in the HTML, although delivered in a scalable manner will lead to huge HTML size and no caching on the CSS ( e.g. external CSS files will be cached if the user loads another page, that uses it ).
This might be okay for a single page application, but indeed having the browser to re-compile the CSS in the inlines every time you do unmount a React component is another performance hit.
I don't like the idea at all.