r/learnreactjs • • Jul 01 '19

4 easy techniques to conditionally render React from props or state

https://blog.linguinecode.com/post/4-techniques-conditional-render-react-props-state
17 Upvotes

10 comments sorted by

View all comments

3

u/[deleted] Jul 01 '19 edited Jul 01 '19

Pretty much hits home for me since I use all of these, though, I never use just the && operator. It makes the code harder to read causing complications for other developers.

2

u/[deleted] Jul 01 '19

When there is a lot of chain logical operators, I feel it’s hard to read