I want my React function to re-render after I splice an array.
Here Is (part of) the function (using Hooks):
function showProblem() { const [andArray,
.splice mutates the array. React states have to be immutable. The immuatble way would be:
.splice
setAndState(and.filter((_, i2) => i2 !== i));