Replies: 1 comment
-
You may use mixes: <div class="my-block">
<div class="my-block__elem1 my-block__common"></div>
<div class="my-block__elem2 my-block__common"></div>
</div> For more info about mixes see https://en.bem.info/methodology/css/#mixes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two set of same representative code due to block and I feel it's duplicate. How can avoid duplicate CSS code as well having different block elements? An example would be very much helpful.
Beta Was this translation helpful? Give feedback.
All reactions