Support native arrow functions as stateless components#4859
Support native arrow functions as stateless components#4859zpao merged 1 commit intofacebook:masterfrom
Conversation
|
Native arrow functions have |
|
That's a good point. We won't be able to test at all in that case but perhaps that's ok… |
|
You could do something like I guess that's not as relevant because the testsuite locks itself to |
|
Native |
af91e63 to
e5c3fb1
Compare
|
Updated for comments. I didn't say it in a comment but I explicitly used |
|
lgtm |
Support native arrow functions as stateless components
I tested this with arrow functions in Chrome (just modified the non-transforming basic example).
We could simulate part of the issue with arrow functions in the test (undefined prototype), but not the newable part. So we'll want a proper test when we can switch to node 4 and have some tests that don't transform.
Fixes #4856