Interesting, in their list of long-term CSS-in-JS alternatives, they include Tailwind. I see it as CSS in HTML/JSX class attributes. Then I suppose HTMX is JS in HTML.
A new one I hadn't heard of, React Strict DOM. Apparently it's a cross-platform styling library for React Native.
https://facebook.github.io/react-strict-dom/
> React Strict DOM lets you create user interfaces that look and feel right on every platform. Web apps are rendered to HTML and rely on static CSS. Native apps look and feel native because the UI is truly native, not a web view.
Yeah, for this use case, I can appreciate the value of having styling primitives in JSX. It's not CSS, but a higher abstraction that includes web and platform-native styles.
In React, the HTML/JSX is embedded in JS. So I think it could be viewed as both!
People who are really good at it are few and far between, so CSS-in-JS is an attempt to scale out styling across a large team that lacks widespread expertise in it.
blabla1224•2h ago
k3liutZu•2h ago
My current plan is to transition to CSS Modules which should allow preserving most (if not all) of the current styled-components DX and advantages.