In react js I can Conditanally render any div. like
{hasContent &&
<span>{value}</span>
}
How can I put two condition like following-
{hasContent || hasDesc &&
<span>{value}</span>
}
*** If I write it it shows wrong or not work perfectly
I acutally want to render span tag if there is hasContent or hasDesc
How can I do that?
Advance thanks!
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment