You can add and update lists with the setList method.

In this example, I'm updating the initialList with the onChange function every time the value changes.