I am working on Nextjs/Reactjs i am fetching data after click on button but in my console i am getting following error
Each child in a list should have a unique "key" prop
Here is my current code ( data is displaying with id and title)(
<button onClick={fetchReviewsFromServer}>Load Reviews From Server</button>
{
reviewfromserver.map(reviewnew=>{
return(
<>
<div key={reviewnew.id}> // not working
<div>{reviewnew.id}- {reviewnew.title} </div>
</div>
</>
)
})
}