Tente isso...
const [properties, setProperties] = useState(props.data.properties);
function remove(prop: IProperty) {
console.log('Prop to remove: ', prop);
setProperties(properties.filter(p => p.name !== prop.name));
}
Tente isso...
const [properties, setProperties] = useState(props.data.properties);
function remove(prop: IProperty) {
console.log('Prop to remove: ', prop);
setProperties(properties.filter(p => p.name !== prop.name));
}
Ja havia tentado desta forma.
Mas vlw.