Funções async
Vamos agora falar de casos onde temos de testar funções async, a base do JavaScript.
Primeiros passos
//functions.js
fetchUser: () =>
axios
.get('https://jsonplaceholder.typicode.com/users/1')
.then(res => res.data)
.catch(err => 'error')


Last updated