1. It is written
on the official website.axios.post(url, data)
.then(response => {
console.log(response);
})
.catch(error => {
console.log(error);
})
2. The company project is written as
axios.post(url, data)
.then(response => {
console.log(response);
}, error => {
console.log(error);
})
I am a rookie. I haven"t used then and catch before. Are these two writing methods the same? Thank you