Thanks for the article, there are some great tips. Just a small amendment - I suppose it'd be better to avoid using double negation and use Boolean() instead.
constApp=({items=[]})=>(<div><h2>Here are your items:</h2><div>{Boolean(items.length)&&items.map((item)=><divkey={item.label}>{item.label}</div>)}</div></div>)
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.
Thanks for the article, there are some great tips. Just a small amendment - I suppose it'd be better to avoid using double negation and use
Boolean()
instead.