Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by nicce

12 hours ago

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?

2 comments

nicce

Reply

c-hendricks  8 hours ago

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

lloydatkinson  2 hours ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities