Answers for "axios get request and save object react"

6

axios react

$ npm install react-axios
Posted by: Guest on September-14-2020
3

how to use axios get

const req = async () => {
  const response = await axios.get('https://dog.ceo/api/breeds/list/all')
  console.log(response)
}
req() // Calling this will make a get request and log the response.
Posted by: Guest on December-07-2020

Browse Popular Code Answers by Language