/
/
App component — the root of the todo application. Composes the AddTodo form and TodoList display. All state is managed by the useTodos hook, keeping this component purely presentational.
10 export function App() { 11 const { todos, addTodo, toggleTodo, deleteTodo } = useTodos(); 12
Filter counts used in the header summary
14 const completed = todos.filter((t) => t.completed).length;