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
We don't currently support anonymous functions in components that are not arrow functions. When we try to do this, we get very bizarre output. We should throw an error in these situations (if we decide not to support them).
Describe the bug
We don't currently support anonymous functions in components that are not arrow functions. When we try to do this, we get very bizarre output. We should throw an error in these situations (if we decide not to support them).
To Reproduce
Variant 1
Variant 2
Workarounds
Workaround is to use an arrow function instead.
Expected behavior
There should be a build-time error.
Version
Tested with master branch as of
8add86d
(compiled/babel-plugin
0.20.0)The text was updated successfully, but these errors were encountered: