react-dom.development.js:14887 Uncaught Error: Objects are not valid as a React child (found: object with keys {_delegate}). If you meant to render a collection of children, use an array instead.
This is the object
const post = [
{
id: 1,
name: "Farish Jamal",
description: "Web Developer",
time: new Date().toLocaleTimeString(),
message: "This is forat",
photoUrl: "",
timestamp: firebase.firestore.FieldValue.serverTimestamp()
},
{
id: 6,
name: "Farish Jamal",
description: "Web Developer",
time: new Date().toLocaleTimeString(),
message: "This is forat",
photoUrl: "",
timestamp: firebase.firestore.FieldValue.serverTimestamp()
},]
This is where i am fetching the data
<div className='feed__post'>
{post.map(({id, name, description, message, photoUrl, timestamp }) =>(
<Post
key={id}
name={name}
description={description}
message={message}
photoUrl={photoUrl}
time={timestamp}
/>
))}
</div>