i want to display div element based on certain condition got from the table data using react table and typescript
code
const buildColumns: (mode: someMode,) => (mode) => [
{
Header: 'Name',
id: 'name',
Cell: props => {
const isActive = props.row.original.isActive === true
|| props.row.original.isActive === null;
return (
{!isActive &&
<div>show me</div>
});
}
]
Now if isActive is not null and if isActive is false i should display div element. how could i do it.
the above condition displays it even if isActive is null. could someone help me with this. thanks.