Changed the code so the props are now fixed to the to-do id and not the index, which means that even after deleting a to-do, the other to-dos will still have to correct state. Before, deleting a to-do would result in the to-do that's taking it's place (index) to have the state of the deleted to-do.
Changed the code so the props are now fixed to the to-do id and not the index, which means that even after deleting a to-do, the other to-dos will still have to correct state. Before, deleting a to-do would result in the to-do that's taking it's place (index) to have the state of the deleted to-do.