whey do we declare components first in vue code example
Example: vue import component
<template>
<Btn />
</template>
<script>
import Btn from './components/Btn'
export default {
components: { Btn },
}
</script>
<template>
<Btn />
</template>
<script>
import Btn from './components/Btn'
export default {
components: { Btn },
}
</script>