Y
Hacker News
new
|
ask
|
show
|
jobs
by
the_duke
2546 days ago
You don't need a one line component, you can just declare an extra variable before your main JSX.
A redundant extra component is bad for performance.
1 comments
manigandham
2546 days ago
I know. That's what the poster didn't like so I suggested an alternative.
link