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

componentWillReceiveProps transfrom result was wrong

Closed this issue · 2 comments

I think the componentWillReceiveProps transfrom result was wrong
image
I think it can be transfrom to this:

 watch: {
    $props: {
      deep: true,
      handler(nextProps={}) {
        //xxx
      }
    }
  }

You are right

#17 should fix it.