vue add component code example
Example 1: vue import component
<template>
<Btn />
</template>
<script>
import Btn from './components/Btn'
export default {
components: { Btn },
}
</script>
Example 2: import vue
import Vue from 'vue'
<template>
<Btn />
</template>
<script>
import Btn from './components/Btn'
export default {
components: { Btn },
}
</script>
import Vue from 'vue'