App.vue
<script setup>
import ChildComp from './ChildComp.vue'
// import Child from './ChildComp.vue' 名字可以改
</script>
<template>
<!-- render child component -->
<!-- 单标签 -->
<ChildComp />
<!-- 双标签 -->
<ChildComp></ChildComp>
</template>
ChildComp.vue
<template>
<h2>A Child Component!</h2>
</template>