In Vue 2 or options API to call a child method from its own parent, we could do it by defining a ref; accessing the ref and calling the method. something like this:
<template>
<my-component ref="childComponent" />
</template>
<script>
export defult {
name: 'parentComponent',
mounted() {
this.$refs.childComponent.childMethod()
}
</script>
but how we can do that in Vue 3 or composition API?