Got a Warning: Each child in a list should have a unique "key" prop. I cant figure out which key I need to use.
<td className="banana-td">
{todos.map((todo, index) => (
<BananaBullet
key={index.id}
value={todo.date}
completed={todo.completed}
onClick={() =>
toggleTodo(todo.id)}
/>
))}
</td>
<td className="task-td">
{todos.map((todo, index) => (
<TodoContainer
key={index.id}
text={todo.text}
completed={todo.completed}
toggleTodoItem={() =>
toggleTodo(todo.id)}
/>
))}
</td>
<td>
{todos.map((todo, index) => (
<DeadlineList
key={index.id}
value={todo.date}
completed={todo.completed}
onClick={() =>
toggleTodo(todo.id)}
I red the react guidelines, but it doesnt help me understand how to use it in my case