selvi jp

selvi jp

  • NA
  • 323
  • 77.2k

Conditional rendering in React js

Jul 27 2021 12:38 PM

I want to display the icon only its column value in the table is true.

if that column value is false then that  row icon did not show .

But here if that any row is true all row icon is display.I want to show  that one button who got the value is true 

{likes.likes_status =true?  

<button className="LikeButton" style={{background:'transparent',border:'none'}}><a className="colorlink"><i class="fa fa-thumbs-up"></i></a></button> </span> :null }


Answers (3)