Usuń element z tablicy w Usestate
let index = array.indexOf(e.target.value)
if (index !== -1) {
array.splice(index, 1);
setState(array);
}
mukashwasti_
let index = array.indexOf(e.target.value)
if (index !== -1) {
array.splice(index, 1);
setState(array);
}