CodeZettaInterview Hub

SCSS · Mixins · Junior · Architecture

When is a mixin better than a duplicated class in HTML?

Short Interview Answer

When the pattern is stylistic sugar without semantic meaning, or needs parameters per use.

Detailed Explanation

If it is a real UI component, prefer a component class over include soup. Mixins should not replace design-system components.

Did you know this answer?