I\'m trying to make a set of inputs that can be duplicated or removed.
I\'ve found and used a combination of this : https://jsfiddle.net/69z2wepo/36745/ and this (becaus
The key
that is passed in should be unique. You shouldn't have two items in the list with the same
key
value.
In your case, when you do 2 subsequent increment and decrement, you end up with same count value. That means same key
repeated for different tag
console.log the count to check if its unique. The key 0 is used twice in the array, that's what the error means.