Closed mateuszlewko closed 6 years ago
Hi! Sorry for not responding, I've been quite busy. I'll try to look at your problem this week.
Awesome, thank you!
I've managed to fix the problem. First I created a react component as suggested here: https://github.com/akxcv/vuera/issues/26, and then added transform-react-jsx
to babel plugins. I'm also using Vue components in that react component through VueWrapper: <VueWrapper component={VueComponent} />
. I see it's not a recommended way of using vue in react, but I wonder whether it has any downsides?
Hi again. Sorry that I couldn't help, but it's great that you figured out the problem!
I'm not sure why you aren't able to use Vue components inside of React via the recommended way. But, to answer your question, no, using the VueWrapper
does not have any downsides aside from aesthetics.
Hi,
I'm trying to use react-grid-layout in Vue using your awesome library. Here is what I have:
As you can see I'm using GridLayout component from react and wrapping it into Vue component (Grid). First of all, am I doing this correctly? Grid component doesn't get displayed at all, but I don't see any errors in
yarn serve
output. I can see<react-wrapper>
under<GridLayout
in Vue's DOM (with Vue-devtools). I've tried doing it as in issue 26, but still no success. Do you know how to fix this?My dependencies:
Thanks!