const handleRemove = (index: number) => { console.log(index) const newData = data.splice(1, index) console.log(newData, "newData") setData(newData) }
const handleRemove = (index: number) => { console.log(index) const newData = data.splice(1, index) console.log(newData, "newData") setData(newData) }