DLMedeiro / ToDo-React

ToDo List Application using React (Springboard Section 39.8)
https://dlmedeiro.github.io/ToDo-React/
0 stars 0 forks source link

Add completion functionality #9

Open DLMedeiro opened 1 year ago

DLMedeiro commented 1 year ago

When each Todo component is displayed, add a button with the text of “Mark as completed”. When this button is clicked, add a strike through the text of the todo.

Instead of a button that when clicked adds a strike through, refactor your application so that when that button is clicked, if the todo is completed (something each todo will have in state), add a strike through, otherwise if a todo is not completed, remove the strike through.