I have a React component where I am trying to render a table using the react-bootstrap-table-next library. I'm getting an error:
Uncaught Error: Objects are not valid as a React child
Issue: The array that I am passing has a property which is an object itself. Where <BootstrapTable> can take only string as property. If you look at the screenshot of the console.log(todos), it shows the dueDate property is an object instead of string.
Tried:
const columns = [
{ dataField: 'title', text: 'Title'},
{ dataField: 'description', text: 'Description' },
{ dataField: 'dueDate', text: 'Due Date' }
];
return (
<div>
<BootstrapTable
keyField= 'id'
data={todos}
columns={columns}
/>
</div>
);
When I try to enter some data, todos are console.log like below:

Problem: Nothing renders inside the BootstrapTable component.