So let’s say in Vue 2 I have an accordion.
The users of my component can write HTML like this.
<accordion> <accordion-item /> <accordion-item /> <accordion-item /> </accordion>
I used $parent.$emit to register the accordion-item with the accordion and implement a feature closing other accordion items via an instance they passed during registration.
With the loss of $children and $on in Vue 3 is the correct way now to use mitt or call a method directly e.g. parent.ctx.method?