3 ms·
Why do this instead of <div class="c-newspaper__item display-flex gap-1rem"> <article class="c-card"></article> </div> .display-flex {
by MuffinFlavored 4y ago
Why do this instead of
<div class="c-newspaper__item display-flex gap-1rem">
<article class="c-card"></article>
</div>
.display-flex {
display: flex;
}
.gap-1rem {
gap: 1rem;
}
- dmix 4y agoYou can use CSS classes like booleans but sometimes its nice to have actual boolean variables, used on the actual HTML element in your component, when designing the logic of your application. Even if it's more verbose.