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.
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.