I am pulling data from a mongo db into a container with withtracker
export default AppContainer = withTracker (() => {
return {
records: Records.find({}).fetch(),
}
}) (App);
but when I try and access the date as below from the App component it gives me the above error.
{this.props.records.map((record) => {
return (
<div>{record.createddate}</div>
)
})}
I have tried all kinds of conversions for the mongo db date field but to no avail.
I think I am now on React 16
What newbie nonsense am I missing?
Many thanks