|
|
|
|
|
by amjnsx
1694 days ago
|
|
On conciseness (and possibly scale), isn’t the css “bloat” just being shifted to the html file instead? Has there been sufficient studies in comparing tailwind to say something like: .MyHeading {color: red; font-weight: bold}
// Left container
<h1 class=“MyHeading”…
// Right container
<h1 class=“MyHeading”… |
|
// Left container <MyHeading />
// Right container <MyHeading />
What's the point of a .MyHeading class in this instance? Why are you spending so much time naming things solely to reference them in a separate file?
In my Tailwind projects I can have an entire components/ directory with just .jsx files. No more having to spend time naming one-off elements, or cross-referencing class names with separate definitions in separate files.