Duplication
Manage duplication in CSS classes for React and Ruby on Rails frameworks.
We'll cover the following...
A common concern when we’re looking at Tailwind and the long sets of class lists is how to manage duplication. If we need to type class="text-6xl font-bold text-blue-700"
for every h1
, as we did in the Introduction, that’s a lot of typing that has to be consistent every time there’s an h1
heading.
Manage duplication in code
Tailwind does have a way to manage CSS class list duplication, but we’re also encouraged to see the duplication issue ...