vuera icon indicating copy to clipboard operation
vuera copied to clipboard

Request: more documentation

Open malmil opened this issue 5 years ago • 2 comments

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 avatar Oct 22 '19 15:10 malmil

@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 avatar Oct 27 '19 14:10 fanyer

@fanyer I've been watching this for awhile. Curious if there are any updates on this?

timsayshey avatar Jan 17 '20 17:01 timsayshey