objek pop js dari id
const popFromData = (memberID: number): void => {
setData(
data
.filter(function(element: DataType) {
return element.id !== memberID;
}))
}
Puzzled Puffin