The function that filters is called handleFilter
Here I leave another image of the drop-down options
The function that filters is called handleFilter
Here I leave another image of the drop-down options
u dont need to return useState setter, also u can use function state updater like this,
setTask(currentValue => currentValue.filter((item) => item.priority === 'basico'))