const deleteUser = () => {
axios.get(`http://localhost:3001/users/${user.id}`)
.then(({ data }) => {
console.log(data)
setDataa(data)
axios.get(`http://localhost:3001/lists`)
.then(({ data }) => {
data.map(l => {
if(dataa && l.userId === dataa.id){
console.log(l)
}
})
})
})
.catch(e => {
alert('Ошибка');
})
}