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
For me, the current error description ("Function component is not a function declaration") is ambiguous when using arrow functions. I've read #2505 and understand the reasoning but it is almost a matter of semantics whether an arrow function assigned to a const variable is a "declaration" or not, specially nowadays with ES6 being extremely widespread and people using both forms interchangeably. So it took me a while debugging this after upgrading some packages thinking it was something else. Maybe a note (no arrow functions allowed) or something like that would do it.
The text was updated successfully, but these errors were encountered:
For me, the current error description ("Function component is not a function declaration") is ambiguous when using arrow functions. I've read #2505 and understand the reasoning but it is almost a matter of semantics whether an arrow function assigned to a const variable is a "declaration" or not, specially nowadays with ES6 being extremely widespread and people using both forms interchangeably. So it took me a while debugging this after upgrading some packages thinking it was something else. Maybe a note
(no arrow functions allowed)
or something like that would do it.The text was updated successfully, but these errors were encountered: