Components are one of the most powerful features of Vue.js. Components are reusable Vue instances with a name. Components are custom elements that Vue’s compiler attaches behavior to.
Example:
Vue.component(‘my-component’, {
template: ‘
A custom component!
‘
})
new Vue({
el: ‘#app’
})