SAI PRAKASH Posted on Dec 13, 2020 Assign arrow function to a variable before exporting as module default import/no-anonymous-default-export #react #javascript Help me with this error Please.... Top comments (1) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Tamas Menyhart Tamas Menyhart Tamas Menyhart Follow Javascript developer at Supercharge and a geek at heart. Location Budapest Work Javascript / Android developer at Supercharge Joined Aug 10, 2020 • Dec 13 '20 Dropdown menu Copy link Hide I think the solution would be: Unstead of: export default () => { ... }; Enter fullscreen mode Exit fullscreen mode Use like this: const fn = () => { ... }; export default fn; Enter fullscreen mode Exit fullscreen mode Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
I think the solution would be:
Unstead of:
Use like this: