I have a component called PostList that basically fetch my posts from the database , and render a Post component for each post , and I'm doing this way
return(
posts.map(p => <Post
key={p.post_id}
category={p.category_name}
title={p.title}
description={p.description}></Post>))
I'm passing the post_id as a key to each one of my posts , but I get a error on the console saying that every child should have its own key , and it doesnt say where the error come from , but If I delete the posts it dissapear so I assume the error comes from there
the point is that each child has its own key since it is the id from the database that is a primary key I will show a picture that show clear that each one has a different key
Thanks for the help