DEV Community

Discussion on: How to write if statement in React.js?

Collapse
 
qaismakani profile image
Qais Makani

There was a recent article published by Kent C. Dodds arguing against the use of && and || for conditional JSX. His arguments are pretty interesting. Here's the link:
kentcdodds.com/blog/use-ternaries-...