Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

React condition - if string value of variable == 'this', do this

0 votes
11 views
added Aug 19 in React by lcjr Second Warrant Officer (6,120 points)
<!--Originally show this-->
<span>{agentID}</span> */}


<!--if string value of variable == 'hide me', shows 'none'-->
<span>{(agentID==='hide me') ? "none" : agentID }</span>

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...