3 ms·
You're able to use plain old .css files in a React project, which a lot of people do, using something like css-in-js or tailwind is a choice.
by gcau 3y ago
You're able to use plain old .css files in a React project, which a lot of people do, using something like css-in-js or tailwind is a choice.
- _heimdall 3y agoIn my experience most don't though, I usually see importing a plain .css file traded as a code smell. That may very well be a limitation of the projects I've worked on, but they have all ended up using Tailwind or a build-time tool for CSS-in-JS or CSS modules.
- wbobeirne 3y agoDo you not consider using CSS modules as using CSS?
- _heimdall 3y agoThat's where it may get a little too pedantic, but I'll try. I do consider CSS modules using CSS as a DSL, but I don't consider it as using CSS the browser spec. CSS modules still run through a build and bundling step which, in my opinion, kicks it out of the "I'm just using CSS" camp.