Sep 18, 2022
If you're doing this, why not have this logic live in the funcional compoment prior to the return, store each part of the conditionals in variable and use those variables in the places they are expected? This feels like polluting UI logic with component logic.