4 ms·
It does. Using inline style attributes is basically a good idea when using a component framework, except for missing features and questionable performance. Tail
by kall 6y ago
It does. Using inline style attributes is basically a good idea when using a component framework, except for missing features and questionable performance. Tailwind solves that.
There is an influential presentation from, i think, someone on the react team that started the whole CSS-in-JS thing. It just advocated for using inline styles. I can‘t seem to find it.
React and Vue have special handling of the inline style attribute to make it more pleasant to use, so it‘s not been fully discouraged for a while.
- acemarke 6y agoThat was Christopher "vjeux" Chedeau's "CSS in JS" talk: https://blog.vjeux.com/2014/javascript/react-css-in-js-nationjs.html https://blog.vjeux.com/2014/javascript/react-css-in-js-natio...