vuera
vuera copied to clipboard
Request: more documentation
Hey! First off, great work! :star2:
Could it maybe be added to usage documentation that you need a babel config like shown below for React-components to work in Vue?
module.exports = {
presets: [
"@babel/preset-env",
],
overrides: [
{
test: "**/*.jsx",
presets: [
"@babel/preset-react"
],
plugins: [
"@babel/plugin-transform-react-jsx"
]
}
]
}
My babel knowledge is very limited and I just copied it from #84 , so an explanation would be very appreciated too
@malmil
I've written some simple examples for VueInReact
or ReactInVue
cases with minimal scale.
It'll be pushed after a while.
The structure is like below.
examples/helloworld
├── .babelrc
├── bundle.js
├── index.html
├── component
│ ├── react
│ │ └── component.js
│ ├── vue
│ │ └── component.vue
├── App.js
├── App.vue
├── index.js
├── node_modules
├── package.json
├── webpack.config.js
└── yarn.lock
@fanyer I've been watching this for awhile. Curious if there are any updates on this?