Using Mixins in Vue.js

It’s a common situation: you have two components that are pretty similar, they share the same basic functionality, but there’s enough that’s different about each of them that you come to a crossroads: do I split this component into two different components? Or do I keep one component, but create enough variance with props that I can alter each one?
Neither of these solutions is perfect: if you split it into two components, you run the risk of having to …

Using Mixins in Vue.js is a post from CSS-Tricks