3
Answers

Conditional rendering in React js

selvi jp

selvi jp

3y
610
1

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)