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

I thought that whole point of CSS in JS was about building the CSS with JS in build time, to get managed and optimized output, who madman runs in in runtime?


The idea of an `sx` prop kind of implies runtime. If there's any logic in those objects it can't be pre computed


It seems all the people criticising CSS in JS are doing it at runtime, like styled-component users.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: