Earlier quoted context omitted.
Sure in a 4 line example it's fine. On a real site with 5 different kinds of hero elements, with some styles in common but a lot of small variations and each with its own responsive behavior it's not so easy anymore. Coming up with good names for things is one of the hardest jobs in programming and this style forces you to name everything . I've been building sites the way you suggest for 20 years. I also had a negat…
> Coming up with good names for things is one of the hardest jobs in programming and this style forces you to name everything. People say that. If you build stuff in components like you are supposed to you almost always have a server side component or component logic that you will have to name . So you are going to have to start naming things properly somewhere. You are simply kicking the can down the road. > I've be…
Sure, so you can do it once and use functional css to define the styles that go with that component right alongside the markup instead of having to maintain another css class name for that component in a separate file, mostly likely with arbitrary and inconsistent padding and margin and font-size values.