Problem
Build a classic todo list application.
Requirements
- Add a todo; toggle complete; delete a todo.
- (Bonus) Edit inline, filter by All / Active / Completed, show remaining count, persist to localStorage.
Hints / Approach
- State:
todos: [{ id, text, completed }]plus afiltervalue. - Derive the visible list from
todos+filterat render time (don't store a separate filtered array). - Use stable
ids (e.g.crypto.randomUUID()); keep updates immutable.