please check the screenshot how can we map array of objects.
{posts.map((post) => {
<PostList
id={post.id}
key={post.id}
username={post?.data?.username}
profileImage={post?.data?.profileImage}
postImage={post?.data?.postImage}
description={post?.data?.description}
/>;
})}

Your
.mapfunction is notreturning anythingYou can solve this in two ways
1: directly returning the
<PostList>with an implicit returnor 2. using an explicit
return