Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wmonk
· 9y ago · 0 comments
AFAIK it's bad practise to export components like that, as they won't have a displayable name in devtools etc.
Comments
[–]
dmitriid
9y ago
Pure/function-only components will not have a name anyway
[–]
wmonk
OP
9y ago
I think they get their display name from the variable name
[–]
zenojevski
9y ago
export default function MyComponent(props) { };