Hi Valentin Parsy,

What would you like to know in more detail? I’d be happy to write more about it of course.

Mixins certainly require more typing, and are a little verbose. With that said, I like how they can extend classes without having to lock down my design to a base class. I found it very useful to share pieces of logic that I combined as legos, and without requiring subclassing.

It’s not the only way or pattern, but I found it very useful. It doesn’t contrast component composition, I think it complements it, and it’s an extra layer of reusability for very complex classes.

If you find yourself subclassing, maybe try giving it a go and see if it makes sense to you.

Giancarlo Buomprisco

Written by

UI Consultant, VP @barclays & Blogger. I write about JS, TS, Rx, Angular & all things Front End 🇬🇧 🇮🇹 — write me at gc@frontend.consulting!