medium20 min
Build a Todo List
Build a fully functional todo list with the ability to add, toggle completion, and delete items. Each todo should show its text with a checkbox for completion status and a delete button. This exercise tests managing an array of objects in state.
Skills
useStatearray stateformsevent handling
Tests
- Renders with an empty todo list
- Adds a new todo when submitting the form
- Toggles a todo as completed
- Deletes a todo
- Does not add empty todos
Loading editor...