Axios Flashcards
(2 cards)
1
Q
What is the syntax for making an asynchronous Axios request?
A
async functionName() { const config = { ... } } const res = await axios.get('https://path.to.resource.com');
2
Q
Using Axios, how do you access the response data from a request?
A
res.data