Full agree. Also, if the docs were read in this case, one would also see that the official advice is to return false ala return condition && <li>item</li> so that React immediately knows to not render anything. Not sure where the expectation that the component must return something renderable came from in this article.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Fragments were introduced as a workaround to JSX not supporting unwrapped sibling elements.
Professional programmers should probably start by reading the docs.
Full agree. Also, if the docs were read in this case, one would also see that the official advice is to return false ala
return condition && <li>item</li>
so that React immediately knows to not render anything. Not sure where the expectation that the component must return something renderable came from in this article.