Some popular Vue plugins are Vuex and Vue-router. A Vue plugin is used when we need to give additional functionality to Vue globally. There are a few very common scenarios where Vue plugins might be useful: adding global methods, adding global assets, adding instance methods on Vue.prototype, or adding global mixins.Â
Where Vue plugins shine is the ability to share them with the community. To get an idea of the vastness of Vue's plugin system, navigate to the following URLs: https://github.com/vuejs/awesome-vue#components--libraries and https://vuejsexamples.com/.
Next, we'll create a simple Vue plugin.