I'm Very new to react and I have a conditional statement in react in a table cell and when user are in the the Search nav it shows the birthdate that's coming up fine however getting errors when I simply like to mix in text element the word "birthday" beside the date.
the string below:
cell: (row) => (
<>
<div class="dob">{`${row.firstName} ${row.lastName} ${
history.location.pathname.toLowerCase().includes('search') && row.maidenName ? `(${row.maidenName})` : ''
}
`}</div>
<div>{`${history.location.pathname.toLowerCase().includes('search') && row.birthdate ? formatDate(new Date(row.birthdate)) : ''}
`}</div>
</>
),