Render JSX Based on Truthiness
It can be a strong reflex to use a ternary or if else statement when you need to conditionally render some JSX, but there is an alternative that is easier to read and understand && that's the truth. ;D
I’m Lydia, a software engineer and designer based in San Francisco. I work at Pathstream, where we develop technologies that empower frontline workers to excel in their careers by securing high paying roles in data analytics, project management, and digital marketing.
It can be a strong reflex to use a ternary or if else statement when you need to conditionally render some JSX, but there is an alternative that is easier to read and understand && that's the truth. ;D