Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not sure I understand what you mean by CSS in JS, since you say inline styles next. Are you talking about JSX having a style component? Or Tailwind within the className in JSX? Or CSS in JS libraries like styled-components?


Styled-component also has this issue but mostly I mean literally assigning a string to the html attribute style.

Classname strings are fine.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: