React - Add class to tab. based on data

0 votes
8 views
added Nov 12 in React by lcjr First Warrant Officer (11,780 points)
//from this
<div className="tabs">

//to this
<div className={`tabs ${!doneDealListing || doneDealListing.data.length === 0 ? 'justify-50' : ''}`}>

 

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