Y
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
dmitriid
3127 days ago
Pure/function-only components will not have a name anyway
link
wmonk
3127 days ago
I think they get their display name from the variable name
link
zenojevski
3127 days ago
export default function MyComponent(props) { };
link