veaury
veaury copied to clipboard
[Vue warn]: Invalid vnode type when creating vnode: undefined.
helloworld.vue内容
<script setup>
import { onMounted } from 'vue';
onMounted(() => {
console.log('mounted');
})
</script>
<template>
<div>hello world</div>
</template>
react中引用:
import { applyVueInReact, applyPureVueInReact } from 'veaury';
import helloworld from './helloworld.vue';
const HelloWorld = applyVueInReact(helloworld);
// <HelloWorld></HelloWorld>
此时控制台提示
界面的元素:
@zhaozhongyu 提供一个范例项目给我
@zhaozhongyu Were you able to solve this issue?