Let’s say I have a List String in my model, and in my view I’m using List.map to convert each String to an HTML element so that I can display them all. Now I’d like to make it so that when I click on one of these HTML elements, the corresponding String gets removed from the list in the model.
How should I go about doing this? I thought about adding an onClick handler to each HTML element, but I can’t think of a message I could send back to the update function that would explain how to update the model.