Solutionunvalidated

You can maintain a local state using `useState` hook to manage the local state for the list of participants — when the remove button is clicked. Tension: then send the actual update to the backend when the form is submitted. Outcome: setAssistants((prev) => prev.filter((assistant) => assistant.name !== name)).

b6a01af7-d49e-45a1-afde-9a6a1779842a

You can maintain a local state using useState hook to manage the local state for the list of participants — when the remove button is clicked. Tension: then send the actual update to the backend when the form is submitted. Outcome: setAssistants((prev) => prev.filter((assistant) => assistant.name !== name)).