Open dqhieuu opened 1 year ago
3.2.47
https://codesandbox.io/p/sandbox/prod-sun-sjr86q?file=%2Fsrc%2FApp.vue
Use these packages:
"vue": "^3.2.47", "vite": "^4.2.1", "@vitejs/plugin-vue-jsx": "^3.0.1",
Create a JSX component (or a component created with h()) in a SFC <script setup> and add it to a <template>. Use a <style scoped> in the same file where the JSX component is defined.
h()
<script setup>
<template>
<style scoped>
Vue version
3.2.47
Link to minimal reproduction
https://codesandbox.io/p/sandbox/prod-sun-sjr86q?file=%2Fsrc%2FApp.vue
Steps to reproduce
Use these packages:
Create a JSX component (or a component created with
h()
) in a SFC<script setup>
and add it to a<template>
. Use a<style scoped>
in the same file where the JSX component is defined.What is expected?