A
A
Alex Krynytskyi2022-03-22 13:45:04
css
Alex Krynytskyi, 2022-03-22 13:45:04

Separate class in html or scss mixin?

Tell me which is better,
1 - create a class with properties and hang it on the necessary elements in html
or
2 - create a mixin and connect to the necessary classes, which results in decent code duplication during compilation.
tell me what to read about it.
Or the difference will not be significant and you should not bother

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sasha, 2022-03-22
@NEOmanceR

Alex Krynytskyi make a mixin without code duplication.
What exactly is the task?
Which styles will be duplicated?
Throw off an example of the mixin used.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question