vueact/babel-plugin-transform-react-to-vue

React.Component is not transformed

armano2 opened this issue · 3 comments

When i tried to transform https://github.com/ahfarmer/calculator/blob/master/src/component/App.js
its not working React.Component !== Component

see: https://github.com/vueact/babel-plugin-transform-react-to-vue/blob/master/index.js#L350
we should also check if imported Identifier is React and do additional checks in ClassDeclaration

@armano2, I think we can just hardcode React check since JSX forces you to use that 😄

I never worked with react, i just was playing around with this tool 🗡

Done #12