You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone. Afaik arrow functions should have names copied from names of variables they are assigned to at creation time.
This is a problem for example with stateless React components, where function name is a basis for component name (which now in react development tools are seen as Unknown).
Babel sets arrow function names properly.
Hi everyone. Afaik arrow functions should have names copied from names of variables they are assigned to at creation time.
This is a problem for example with stateless React components, where function name is a basis for component name (which now in react development tools are seen as
Unknown
).Babel sets arrow function names properly.
Code
Expected behavior:
Compiles to
Prints
"x"
.Actual behavior:
Compiles to
Prints
undefined
.The text was updated successfully, but these errors were encountered: