React patterns — always apply error boundaries, loading states, accessible markup, proper hooks, controlled forms, stable keys, and correct memoization
87
80%
Does it follow best practices?
Impact
99%
1.83xAverage score across 5 eval scenarios
Passed
No known issues
Build a todo list component in React with TypeScript. Users can add new todos by typing in a text field and pressing Enter or clicking an "Add" button. Each todo can be toggled between complete and incomplete, and can be deleted.
The list should show how many items are remaining (not completed).
Produce TypeScript/TSX files in a src/ directory:
src/types.ts -- TypeScript type definitionssrc/components/TodoApp.tsx -- the main todo app component with the input form and listsrc/components/TodoItem.tsx -- component for a single todo item with toggle and deleteAll data is local state (no API calls needed). Do not include test files or build configuration.