I don't what '''lang tag you use, but '''vue works
<scriptsetuplang="ts">import{ref,withDefaults,useSlots,useAttrs}from'vue';constprops=withDefaults(defineProps<{msg:string;}>(),{msg:'Hello World!'});constemit=defineEmits<{(event:'click',count:number):void;}>();constslots=useSlots();constattributes=useAttrs()constcount=ref(0);constincrement=()=>count.value++;</script><template><h1>{{msg}}</h1><buttontype="button"@click="increment">count is: {{count}}</button><p>
Edit
<code>components/HelloWorld.vue</code> to test hot module replacement.
</p></template>
Another thing about Vite, that it can also bundle libraries; as well as vanilla, and not-only-Vue (e.g. React). I haven't really tried, but Vue and React in the same project should also be possible.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I don't what '''lang tag you use, but '''vue works
Also, superb showcase. I think you missed showing
<style scoped>
and extra selectors, though. (But:host
is still missing.)Another thing about Vite, that it can also bundle libraries; as well as vanilla, and not-only-Vue (e.g. React). I haven't really tried, but Vue and React in the same project should also be possible.