CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/react-patterns

React patterns — always apply error boundaries, loading states, accessible markup, proper hooks, controlled forms, stable keys, and correct memoization

87

1.83x
Quality

80%

Does it follow best practices?

Impact

99%

1.83x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-5/

Todo List

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).

Output

Produce TypeScript/TSX files in a src/ directory:

  • src/types.ts -- TypeScript type definitions
  • src/components/TodoApp.tsx -- the main todo app component with the input form and list
  • src/components/TodoItem.tsx -- component for a single todo item with toggle and delete

All data is local state (no API calls needed). Do not include test files or build configuration.

evals

tile.json