Answers for "axios error handling typescript"

0

axios error handling typescript

axios.get('https://xyz.com/getData')
  .then((res) => {
    console.log(res.data.avatar_url);
  }).catch((err) => {
    console.log(err);
  });
Posted by: Guest on April-29-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language