What’s the deal with CSS and CSS-in-JS?
They can do a lot of the same things, but in different ways.
Many people like traditional CSS because it is well-established and more approachable with less configuration and dependencies.
At its simplest, you write content in html or with your templating system of choice.
To style content, write CSS in a stylesheet, usually in a separate file that gets loaded via a link tag in the head of your document.
Some people think that if you are using React, that means you have to use CSS‑in‑JS. That’s not the case!
It is possible you may not need any JavaScript at all. There’s a lot that can be done these days with new CSS features alone.
If you do need it, there are plenty of frameworks and tooling to help you import, require, prettify, minify, lint, code split, bundle, tree shake, transpile, compile and hot reload, but a script tag at the bottom of your page works just fine too.
Building web pages like this has worked for many years, and will continue to work for the foreseeable future. If you want to build websites this way, there’s nothing wrong with that and don’t let anyone stop you!