I got an "Uncaught TypeError: undefined is not a function" on the following line of code while trying to render the filter functionality on my todo list on React
.filter(FILTER_MAP[filter])
.map((task)=> (
<Todo
id={task.id}
name={task.name}
completed={task.completed}
key={task.id}
toggleTaskCompleted={toggleTaskCompleted}
deleteTask={deleteTask}
editTask={editTask}
/>
));```
just something wrong in key={task.id} and try to change
key={task.key}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.