Sometimes we need a child component to change the state of its parent component.
We can do that by emitting an event using the globally defined function, defineEmits, and listening for it where the component is used.
defineEmits