You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We often run into bugs where a string literal 0 is rendered, because a short hand notion was used, which react does not allow:
<div>{unreadMessages.length&&<h2>Hey</h2>}</div>
React will not render a boolean value, while it does for integer values like 0 and 1.
If possible, I'd like to detect this pattern and flag it early. Apologies if this already exists, I checked for "conditional" and "inline" and couldn't find a match.
spinningarrow, matthargett, ArnaudBarre, alekhinen, MuYunyun and 31 more