Peticiones HTTP con Axios
Last updated
Last updated
$ npm install --save axios$ yarn add axiosimport axios from 'axios';axios.get('http://localhost:3000/names')
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
});