title: How to emit event from child to parent in Vue3 with <script setup> syntax?
body: <p>I have the following component:</p>
  <pre><code>&lt;SomeModal :is-modal-active=&quot;isAddingThing&quot; @close=&quot;isAddingThing = false&quot; /&gt;
  </code></pre>
  <p>Inside that component looks like this:</p>
  <pre><code>&lt;script setup&gt;
  import { defineProps } from 'vue'
  
  const props = defineProps({
      isModalActive: Boolean,
  })
  
  const handleClose = () =&gt; {
      emit('close') // doesn't work
  }
  &lt;/script&gt;
  
  &lt;template&gt;
  &lt;V-Modal @close=&quot;handleClose&quot;&gt;
      ...
  &lt;/V-Modal&gt;
  &lt;/template&gt;
  </code></pre>
  <p>How do I emit to parent?</p>