score:1

setTask((prevTasks) => prevTasks.filter(({ complete }) => !complete));

score:2

const updatedTasks = tasks.filter((el)=> el.complete !== 'true');
setTasks(updatedTasks);

Related Query

More Query from same tag