درود به دوستان
با اینکه هر چی چک میکنم و اشکالی در کدی که نوشته ام نمیبینم ولی خطای بالا را دارم
لطفا راهنمایی کنید
const deleteStudent=(index)=>{
const students={…studentsState};
students.splice(index,1);
setStudents(students)
console.log(students)
}