Open kvedantmahajan opened 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.
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.