News for hackers. Stuff that matters.
Re:Why Tailwind CSS Won by red_admiral on Wednesday August 16, 2023 @06:09AM (#37144929)
In React at least, often you can live with One Component = One File at least for simple components. Adding separate CSS files, as the OP says, causes context-switching.

This is not true in svelte, where a component file can have both a root tag for the component, and a <style> tag that the framework/compiler automatically scopes to this component (and a <script> tag for the code, since you don't have the JSX inversion-of-control principle).

There are no comments on this comment yet.