nickmessing / babel-plugin-jsx-vue-functional

JSX Syntactic Sugar Plugin for Vue Functional Components
MIT License
66 stars 4 forks source link

What do you mean by this won't work in 2.0 in Readme #12

Open kvedantmahajan opened 6 years ago

kvedantmahajan commented 6 years ago

I'm a little confused by the example you gave that won't work down below

This plugin will transform all named arrow functions that contain JSX and starting with version 2.0.0 so this code will not work:

const A = () => <h1>Hello World</h1> export const B = ({ props, listeners }) => <div onClick={listeners.click}>{props.msg}{A()}</div>

Can you please explain, what would work rather as the example above this section is same as well.