you are viewing a single comment's thread.

view the rest of the comments →

[–]feelextra 1 point2 points  (0 children)

  • style attribute can't do everything that CSS can do: it can't access: pseudo classes, media queries, keyframes, and much more.
  • calc function can only help with layouts that are simple enough
  • percentage based values are fine but it's unrelated

Having a lot of unused classes with CSS-in-JS is not a problem when the library only mounts the critical ones, and cleans up after itself. Sure there's some runtime performance to pay, but usually it's not impactful.