3 ms·
AFAIK it's bad practise to export components like that, as they won't have a displayable name in devtools etc.
by wmonk 9y ago
AFAIK it's bad practise to export components like that, as they won't have a displayable name in devtools etc.
- dmitriid 9y agoPure/function-only components will not have a name anyway
- wmonk 9y agoI think they get their display name from the variable name
- zenojevski 9y agoexport default function MyComponent(props) { };