My teammate wrote the code:
const getItem = async () => {
const res = await axios.get('/items/123214324').then(r =>
r.data.item).catch(err => console.log(err))
return res
}
I think it absolute disaster(If we use async/await then we don't use then/catch, and vise versa). But he says it good. Who are right?