score:4

Accepted answer
{summaryData && isDescriptionShown && (
  <p className="company-description">{summaryData[0].ceo}</p>
)}
{summaryData && <p>
  <strong>CEO: </strong> {summaryData[0].ceo}
</p>}

score:0

{isDescriptionShown && (
                    <p className="company-description">{summaryData[0].ceo}</p>
                )}
                <p>
                    <strong>CEO: </strong> {summaryData[0].ceo}
                </p>

score:0

{!!summaryData && isDescriptionShown && (
  <p className="company-description">{summaryData[0].ceo}</p>
)}

{!!summaryData && <p>
  <strong>CEO: </strong> {summaryData[0].ceo}
</p>}

Related Query

More Query from same tag