‘m building a simple to-do app in React where I can add and delete items. However, after I delete an item, the deleted item reappears when I submit a new one. I’ve checked the state in the console, and it shows the correct data, but the UI still displays the deleted item.
https://codesandbox.io/p/sandbox/w9lvkr