Hacker News new | ask | show | jobs
by wmonk 3127 days ago
AFAIK it's bad practise to export components like that, as they won't have a displayable name in devtools etc.
2 comments

Pure/function-only components will not have a name anyway
I think they get their display name from the variable name

    export default function MyComponent(props) { };