Title: Building a Simple React Todo List
A to-do app is a classic React exercise. It teaches about lists, input handling,
and state updates.
Use `useState` to hold an array of todos. Each todo has `id`, `text`, and
`completed`. Use a form input to add new tasks. On submit, update the todo list
state.
Render todos using `map()`: `<li>{todo.text}</li>`. Add a delete button next to
each. On click, filter out that todo.
For toggling completed, map over the list and change `completed` for matching `id`.
Use styles like `line-through` for visual feedback.
Extra: add task counts, filtering (All/Active/Completed), localStorage saving, or
animations.
Performance: use unique `key`, avoid mutating state, debounce inputs if needed.
Conclusion: This app reinforces key React ideas — state, list rendering,
immutability. A strong first project for beginners.