Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



I know. That's what the poster didn't like so I suggested an alternative.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: