Problem: using setList is updating the component props and the state inside the component, not just the state inside the component.
I have worked out a partial soluti