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

Personally I'm not a fan. A lot of people love using conditional operators (?, &&, ||) in React, but having overly nested chains of these operators is a code smell for me. Probably means they can refactor the logic into separate components, or into intermediate boolean variables. Or just into a plain old if statement.


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

Search: