Vue Script Setup Emit

Posted on  by admin

If you’ve been working in Vite and Vue 3 recently, you’ll notice that when you start a new project, your script section looks like this with this script syntax in your Vue components.

You may be wondering, “What is this? Is this the Options API? Composition API? where’s the setup method?”.

And there you have it!

The