如题。
<script lang="tsx">
import { ref } from "vue";
export default {
setup() {
const countRef = ref(100);
const render = () => {
return <div>jsx from .vue {countRef.value}</div>;
};
return render;
},
};
</script>
<script setup>
import { ref } from "vue";
const countRef = ref(100);
// 没有return,如何编写jsx代码
</script>