Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

ReactWrapper and VueWrapper can't show the children vnode #127

Open
ppfalling opened this issue Nov 18, 2020 · 1 comment
Open

ReactWrapper and VueWrapper can't show the children vnode #127

ppfalling opened this issue Nov 18, 2020 · 1 comment

Comments

@ppfalling
Copy link

ppfalling commented Nov 18, 2020

<template>
  <div>    
    <my-react :route="$route">
      <a>!!!!!children:react children</a>    here can't render   ???
    </my-react>
  </div>
</template>

<script>
import { ReactWrapper } from 'vuera'
import myReact from '../myReact.tsx'
export default {
  components:{
    myReact
  }
  
}
</script>

<style>

</style>
@DaiQiangReal
Copy link

Of course. Since Vuera just using React to show your react component in vue, and do the vue props transform work for your react component. Vuera didn't transform vue format virtualDOM to React format virtualDOM. What your react componet and react get in the children props isn't a real react virtualDOM actually.

Hope there is one day that vuera can support transforming virtualDOM between react and vue. It is hard but worthly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants