Coding task · JavaScript and React course · Module 3: State and Events
Practice: Todo List
A to-do list like a log of daily Martian mission protocols: adding, marking as done and deleting - always through a new array (no push or splice on state).
Task
Create a MissionProtocols component and render it in App. Keep an array of protocols { id, text, done } in state. A controlled text field and an Add button add a new protocol (a new array with spread). Each protocol has a checkbox that toggles done (map) and a Delete button that removes only that protocol (filter). Highlight completed protocols with a style, e.g. textDecoration: 'line-through'.