Hacker News new | ask | show | jobs
by willsmith72 919 days ago
0 runtime is the argument over emotion (and therefore MUI right now)
2 comments

You'll be glad to hear that MUI is zeroing in (pun intended) on a zero runtime solution right now as an alternative to Emotion [0], although that GitHub issue doesn't capture just how far it has come. Expect more soon!

[0] https://github.com/mui/material-ui/issues/38137

they are not the same kind of thing though, one is a library TO WORK WITH styles, the other is a library AND some styles
thanks for pointing this out. I hope they extend their `thinking in stylex` page with this info.
They do, albeit it's a bit confusing

https://stylexjs.com/docs/learn/thinking-in-stylex/

> There is no runtime overhead here

Specifically

> No runtime style injection.

There's still a runtime though

> Optimized runtime for merging class names.

They explain the 0-runtime pretty thoroughly.