1.

What are the drawbacks of mixins?

Answer»

Mixin is a Vue.js feature that allows code reusability between components in Vue.js application instances and a software composition tool. 

The drawback of MIXINS

  • As mixins are powerful tools, there are some issues to be taken care of while using them. UNEXPECTED behavior, as well as maintenance issues, should be considered as well with all codes included in the components. 
  • Global mixins (that are APPLIED to every component), should be avoided since modifying every single component would most of the time LEAD to maintenance issues as an application grows. Adding specific mixins to certain components as needed helps in writing a more MAINTAINABLE code. 


Discussion

No Comment Found

Related InterviewSolutions