score:8

Accepted answer
const deleteItem = (i) => {
  setItems(currentItems => currentItems.filter((item, index) => index !== i));
}

Related Query

More Query from same tag