# Vue 2

vuejavascriptfrontendframework
  • Template section in components needs one top level root element, in contrast to vue3 which can have multiple root elements.
  • Use props and named v-slots with components
  • Vue Components | Vue Plugins | Vue Mixins
    • component is individual unit in itself
    • Mixin add functionality to an existing component
      • could be global
    • Plugins - distribute components
      • Plugins usually add global-level functionality to Vue
source
compiles
Component.vue
Vue-2,3 compiler
html, css, js

# How Properly packaging your SFC for distribution via npm?

exports
exports
draw 1 SVG star.vue
Draw 5 in a row.vue
.ts export 5 stars
  • or
  • Buy me a coffeeBuy me a coffee