I am trying to print the boolean and timestamp values that are returned by some API. I am unable to do the same. Help would be appreciated
column config object:
<ReactTable
data={this.state.data}
columns={[
{
Header: 'Name',
accessor: 'name'
},
{
Header: 'Age>18',
accessor: d => d.isAgeAbove18.toString(); // this does not work
},
{
Header: 'TimeStamp',
accessor: d => d.timeVal.toString(); // this does not work
},
]}
/>
d => d.isAgeAbove18 ? "YES" : "NO"?idprop besidesHeader&accessor.