-
-
Notifications
You must be signed in to change notification settings - Fork 303
Support ES6 #147
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
Comments
react-docgen completely supports ES6. However it doesn't support many of the newer experimental proposals, such as public class fields, which is what you might be using? Can you please clarify your post? Also see #137 which would solve that problem. |
Thanks for your reply. |
If by support you mean "can react-docgen parse code that uses arrow functions", the answer is yes. |
Sorry for my late response. `
TestClass.propTypes = { |
@fkling I'm having errors with arrow functions in class methods as the render method... I have a component like this: class Foo extends Component {
(...)
render = () =>
<div>
Foo!
</div>
} But it throws to me |
That's what I meant when I mentioned in an earlier post
This is an example of a public class field, so it wasn't supported. However, since then we have released |
I'll give it a shot, thanks for your work! |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
can I ask about support ES6 fat arrows function?
Thank you,
redak105
The text was updated successfully, but these errors were encountered: