Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kvedantmahajan opened this issue Oct 1, 2018 · 0 comments
Open

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

kvedantmahajan opened this issue Oct 1, 2018 · 0 comments

Comments

@kvedantmahajan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant