This seems like a culprit. You’re setting items to a toString of the prevState items. Doing this means its no longer an array, rather a string.
senocular
124
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| React Help with todo list | 2 | 753 | November 5, 2018 | |
| 14. Building a Todo List App in React | 1 | 477 | August 16, 2019 | |
| Building a Todo List App | 4 | 704 | June 21, 2019 | |
| React - todolist - deleting | 3 | 483 | July 21, 2022 | |
| Spot the bug - #110: Todo List | 2 | 20 | August 9, 2026 |